buymeasoda RefDocs
  • Overview
  • General
    • Android
    • Apache
    • Fish
    • Git
    • Github
    • Gmail
    • Homebrew
    • iOS
    • iTerm
    • MacOS
    • MacPorts
    • Mamp
    • Media
    • Mercurial
    • MySQL
    • Node
    • npm
    • nvm
    • Obsidian
    • PHP
    • React Native
    • Rust
    • Server
    • Slack
    • Sourcegraph
    • Tools
    • Vim
    • VS Code
    • Yarn
  • Unix
    • Checksum and hash utilities
    • Command line history
    • Command line keyboard shortcuts
    • Compress files and folders
    • Crontab
    • Diff files and folders
    • Disk usage and file sizes
    • Find and search files
    • Firewall configuration
    • Help and manual pages
    • HostName and Local HostName for Mac OSX
    • Navigating the file system
    • Network, domains and routing
    • Run and manage background tasks
    • Secure FTP SFTP and Secure Copy SCP
    • Secure Shell SSH
    • Sync files and folders
    • System and process management
    • System and user information
    • Useful characters
    • Useful commands
    • User, file and group permissions
    • Working with cURL
    • Working with files and directories
    • Working with text
Powered by GitBook
On this page
  • Files
  • Tools
  • Extensions
  • Quick Search
  • Useful Commands
  1. General

VS Code

Files

Open specific file, path or current directory in VS Code

code <file-path>
code .

Add file to last active editor window or new window

code -a <file-path>
code -n <file-path>

Open file and goto specified line

code -g <file>:<line>

Tools

Compare files using VS Code diff view

code -d <file1> <file2>

Extensions

Show list of installed extensions or list with versions

code --list-extensions
code --list-extensions --show-versions

Quick Search

Open quick search panel

CMD + P

Search for symbols (across files, in the current file, grouped by category)

<file-name>@<symbol>
@<symbol>
@:<symbol>

Search for string within directory (separate string and directory by space)

<string> <directory>

Useful Commands

Show inlay type hints (when set to "offUnlessPressed")

CTRL + OPTION
PreviousVimNextYarn

Last updated 1 year ago