Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open Clion from terminal

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.

like image 471
Gabriel Pellegrino Avatar asked Jan 05 '17 12:01

Gabriel Pellegrino


People also ask

How do you open CLion terminal?

From the main menu, select View | Tool Windows | Terminal or press Alt+F12 .

How do I launch CLion in Linux?

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.


1 Answers

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
like image 188
Eugene Ilyushin Avatar answered Oct 16 '22 18:10

Eugene Ilyushin