visual-studio-codebash.profile

VS Code: Is there a way to make a project that opens bash config files


I want to quickly be able to launch a VS Code project that contains 3 files: ~/.bash_profile ~/.profile ~/.bashrc as i frequently want to edit all 3 at once if I need to tweak things. Is there a way to make a project out of the 3, and then be able to open a project file instead next time?


Solution

  • What about adding the files as argument in the shortcut. or to work on a copy create a simple .bat that copies the files in a new folder and open it.

    Edit: add -n option, from the documentation: https://code.visualstudio.com/docs/editor/command-line

    -n or --new-window  Opens a new session of VS Code instead of restoring the previous session (default).