The default desktop in Clion

How to change the default working directory in Clion EAP on Mac?
Every time I create a new project, I need to change it to the location of the project.

+6
source share
3 answers

Do you still have this problem?

I just tried the following: I closed all my projects to return to the Welcome to CLion dialog. I selected "New Project" in the quick launch menu on the right. This brings up the "New CMake Project" dialog. Then I introduced a new path in the "Project Location" section. The last project segment is interpreted as the project name.

Specify a New Project Location . Click OK to create a new project.

The next time you create a new project, it should remember the location, as shown here.

Another New Project

0
source

First of all, it is not possible to change the working directory through the GUI CLION (see the second question in the "CMake Configuration" section in the Source ), but you can ask the developers to add this function in the future (see this ).

On the other hand, as far as I know, it is not possible to automatically add set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}") to CMakeList.txt, but if I find a solution, I will write it here.

0
source

These answers are relatively old. Not sure when the feature was added, but there is a very good user interface for setting the current working directory.

I made a YouTube tutorial for my students COSC1030 (C ++ beginners), but the solution is the same for everyone: https://youtu.be/dTtZEAfh_LM

0
source

Source: https://habr.com/ru/post/977581/


All Articles