User Tools

Site Tools


newdevs:landscape:tools:vscode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
newdevs:landscape:tools:vscode [2024/08/29 12:05] – [File Associations and Syntax Highlighting] slearynewdevs:landscape:tools:vscode [2025/02/26 11:53] (current) sleary
Line 54: Line 54:
   * [[https://code.visualstudio.com/docs/sourcecontrol/overview#_vs-code-as-git-difftool-and-mergetool|Use VSCode as diff, merge, and interactive rebase tools]]   * [[https://code.visualstudio.com/docs/sourcecontrol/overview#_vs-code-as-git-difftool-and-mergetool|Use VSCode as diff, merge, and interactive rebase tools]]
   * Use the ''git.alwaysSignOff'' setting to [[https://github.com/microsoft/vscode/issues/83096|automatically sign off on commits]]   * Use the ''git.alwaysSignOff'' setting to [[https://github.com/microsoft/vscode/issues/83096|automatically sign off on commits]]
 +
 +===== Command Line Tools for the VSCode Terminal =====
 +
 +To open a file from the Terminal command line into a new window in the VSCode editor, use:
 +<code>
 +code path/to/filename.ext
 +</code>
 +
 +To open the file in your current workspace (assuming the file exists somewhere in your working directory), use ''-r'':
 +<code>
 +code -r path/to/filename.ext
 +</code>
 +
 +You can edit ''~/.bash_aliases'' to rename that command to something easier to remember, like...
 +<code>
 +alias vscode='code -r'
 +</code>
 +
 +...which would allow you to edit the file with 
 +<code>
 +vscode path/to/filename.ext
 +</code>
 +
 +See the [[newdevs:git:commands#aliases|aliases section of the Git Commands]] page for other bash aliases that might be useful in your workflow.
  
 See the [[newdevs:landscape:tools]] page for other editors and development tools. See the [[newdevs:landscape:tools]] page for other editors and development tools.
newdevs/landscape/tools/vscode.1724947508.txt.gz · Last modified: 2024/08/29 12:05 by sleary

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.