I've been trying to set a path to Clion directory in my computer in order to open this program with a command in terminal, but it didn't worked.
If you read this and asked yourself: "what?". I want to start a C++ project like I did with a normal text editor(I used to write codes with gedit).
I want something like, make a hello world:
Clion helloWorld.cpp &
And it will open a new project, named helloWorld, and then I can write down the code.
If it is impossible to do that, sorry.
From the main menu, select View | Tool Windows | Terminal or press Alt+F12 .
Run CLion for the first timeRun the CLion app from the Applications directory, Launchpad, or Spotlight. Run the clion.sh shell script in the installation directory under bin. You can also use the desktop shortcut, if it was created during installation.
For Mac users, you need to add following row in ~/.bash_profile:
alias clion='open -na "CLion.app" --args "$@"'
Then from the terminal you can run CLion:
clion /path-to-your-project
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With