Forrest logo
back to context overview

code

List of commands for code:

  • code:tldr:11fc8 code: Install/uninstall a specific extension.
    $ code --${select}-extension ${publisher-extension}
    try on your machine
    explain this command
  • code:tldr:1aa9d code: Start the editor as a superuser (root) while storing user data in a specific directory.
    $ sudo code --user-data-dir ${path-to-directory}
    try on your machine
    explain this command
  • code:tldr:58afc code: Open specific files/directories in a new window.
    $ code --new-window ${filename_or_directory1 filename_or_directory2 ---}
    try on your machine
    explain this command
  • code:tldr:70f5a code: Open specific files/directories.
    $ code ${filename_or_directory1 filename_or_directory2 ---}
    try on your machine
    explain this command
  • code:tldr:aa27c code: Compare two specific files.
    $ code --diff ${filename1} ${filename2}
    try on your machine
    explain this command
  • code:tldr:bf2af code: Print installed extensions.
    $ code --list-extensions
    try on your machine
    explain this command
  • code:tldr:c1336 code: Start Visual Studio Code.
    $ code
    try on your machine
    explain this command
  • code:tldr:ce1b2 code: Print installed extensions with their versions.
    $ code --list-extensions --show-versions
    try on your machine
    explain this command
  • code:warp:20d1c7952adffb5c8cbcd3cc11b7f9b1 Open a file or directory in the currently open VS Code window
    $ code -r ${file_or_directory}
    try on your machine
    explain this command
back to context overview