How to run intellij terminal ideas with a different folder?

Command line asterisks with some folder like projectRoot/one subproject every time instead of projectRoot . Personally, I have not changed any settings for this.

Does anyone know how to configure Idea to launch a terminal using the project root instead of entering cd .. every time?

+5
source share
1 answer

I don’t quite understand how Terminal Plugin is connected in IDEA, where to launch the terminal (although it is always a subfolder of the project root), but there is a kind of workaround for this: always run the terminal in the root of your repo.

In "Settings β†’ Terminal" add the / K option and then the command to go to the desired path, for example:

  • Shell path: cmd /K "cd D:\usr\local\repo"
+6
source

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


All Articles