D
D
Dmitry2019-10-26 10:30:38
Visual Studio Code
Dmitry, 2019-10-26 10:30:38

How to specify start commands for VS Code terminal?

How to specify initial commands for terminal? For example, I want the cls command to be automatically executed when opening a new terminal window

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2019-10-26
@By_Engine

If it is Windows and powershell, then you can add the appropriate commands to the user's powershell profile.
This is a simple powershell file where you can add any commands.
For example like this:

if (!(Test-Path -Path $PROFILE)){ New-Item -Path $PROFILE -ItemType File }
"cls" > $PROFILE

https://devblogs.microsoft.com/scripting/i-have-a...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question