Post startup hookThis extension allows you to run either a default file* or a defined commands at VSCode startup. Usage exampleIt could be useful when you want to install automatically a private extension once VSCode is starting on a remote host. You can also set some default configuration for each user on managed laptop or remote server. Default fileYou have to create a file named vscode-startup-hook[.bat / .sh / .exe / .bin] on a specific folder. The extension and location depend of your OS and if want to run the script on local or on a remote server. Location of the script allowedLocally
On remote linux host
Extensions allowed
Custom commandsYou can also configure some custom command to run at each startup. The configuration should be put in settings.json
TipsInstall other extensionIn your script you can use the command Run the script/command onceIf you want to run the command only once you can either disable to extension or uninstall it at the end of your script or commands, with respectively the following commands:
Auto-configure a remote instanceBy default VSCode doen't provide any way to configure automatically your local instance. With the following configuration you can install automatically a private extension on your remote SSH instance an let your extension configure it.
|