Skip to content

Instantly share code, notes, and snippets.

@lcenchew
Last active October 2, 2023 16:40
Show Gist options
  • Save lcenchew/963a3fdb7616cf3648ff0510855d5b23 to your computer and use it in GitHub Desktop.
Save lcenchew/963a3fdb7616cf3648ff0510855d5b23 to your computer and use it in GitHub Desktop.
Notes - VS Code #notes

VS Code

General

  • brew install visual-studio-code

Settings

Settings file locations:

  • Command Palette > Preferences: Open Settings (JSON)
  • macOS: $HOME/Library/Application Support/Code/User/settings.json

Profile

  • profile
  • create profile for
    • notes
    • learning
    • work

Useful extension

Develop in Container

  1. Install the Remote Development extension pack
  2. Run Docker Desktop

Try out

  1. Click on the quick actions Status Bar item in the lower left corner.
  2. Select Remote-Containers: Try a Sample... from the command list

Setup environment

  1. Start with the code folder. Run Remote-Containers: Open Folder in Container...
  2. Select a one of the standard dev container. Github | Docker Hub
  3. Wait for container to spin up. (first time can be slow)

Customise environment

Troubleshooting

If unable to access git ssh credential

ssh-add -K ~/.ssh/[private-key-name]	

~/Library/Application Support/Code/User/workspaceStorage https://gist.github.com/3v1n0/8e27c06ca88159fdc140533608edbe37

Launch configurations

  1. .vscode/launch.json

More info: Launch configurations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment