Table of Contents
New Developers Working Group
VSCode
Useful extensions
- Filter Line – useful for narrowing down a search through log files
- Log File Highlighter – color codes different parts of a .log file
- Angular Language Service
- Axe Accessibility Linter
- Bookmarks
- Better AsciiDoc
- Compare Folders
- Git History
- Git Lens
- Live Share is used sometimes in New Devs for collaborative work
- PowerShell
- Regex Previewer
- Remote Explorer
- Remote SSH
- Rewrap lets you press Alt-Q to automatically wrap lines in commit messages
- Tab Groups
- TODO Highlight highlights keywords like
TODO
Settings and Configuration
If your server runs Linux and you get an error about the number of files in the workspace, you may need to adjust the inotify file watch limit.
To exclude compiler files from file search results, add **/.angular to the patterns that are excluded from search.
File Associations and Syntax Highlighting
To make VSCode show the correct syntax highlighting for Template Toolkit files, edit your settings.json
file to set files.associations
as the following:
"files.associations": { "*.tt2": "html", "*colors.tt2": "perl", "*.css.tt2": "css", },
*.js.tt2
files are best displayed as HTML or Perl.
HTML in VSCode
VSCode supports Emmet syntax in new files, which can be very helpful for creating quick mockups.
With Emmet, you can quickly wrap a selection in an HTML tag. Press Ctrl-Shift-P to bring up the command palette, then type 'wrap' and press Enter. You will be prompted for the tag you want to wrap your selection with. If Wrap is your most recent command, you will be able to use it again without typing the word 'wrap'; you can just press Ctrl-Shift-P and then Enter when you see 'Emmet:Wrap' highlighted.
Git in VSCode
- Use the
git.alwaysSignOff
setting to 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 path/to/filename.ext
To open the file in your current workspace (assuming the file exists somewhere in your working directory), use -r
:
code -r path/to/filename.ext
You can edit ~/.bash_aliases
to rename that command to something easier to remember, like…
alias vscode='code -r'
…which would allow you to edit the file with
vscode path/to/filename.ext
See the aliases section of the Git Commands page for other bash aliases that might be useful in your workflow.
See the tools page for other editors and development tools.