I have an angular project and a java project and I would like to have a script for cmder that starts both of them in their specific directory in split window view so I can see both their logs.
I know I can create a task file but I don't know how to configure it to create 2 (or more) terminals in split window view
EDIT:
I would like to elaborate more on my question. I want with 1 script/command/configuration(?) to do the following thing:
- Start cmder
- on a terminal on top to run
ng serve
on the specific path that I have my angular application - create another terminal on the bottom and on a different path, I want to run
mvn spring-boot:run
so that I have a cmder environment that looks like in the image I posted
Best Answer
You may setup your configuration and specify to
cmder
save all tabs and reload them at startup.Right-click the green icon on the left of the title bar and choose
Settings...
.In the Settings dialog, click on Startup and then on Auto save/restore opened tabs, and finally on Save settings. Your tab setup should now be saved on exit and restored on startup.
If you are trying to run several commands in two horizontal panes, perhaps it would be simpler to put everything in a task file, using the "Tasks file" option in the Startup section, like this :
The first task starts in the opened console in folder
C:\Temp
, is namedWin1
and runscommand1
. The second task starts in the opened console in folderC:\Temp
, is namedWin2
and runscommand2
. It is added to the first console -s1T
- and takes 50 percent of the height vertically (50V).