Kaizen Today I Learned by Ville Säävuori

Posts tagged vscode

Updating the list of local Git branches from remote

Vscode Git branch dropdown becomes unwieldly fast when not kept up to date often. Here’s how to update the local list of remote branches: git fetch --prune git pull --prune Make this automatic every time you run pull or fetch: git config remote.origin.prune true

· Read the full article →

VSCode Custom Snippets

Adding custom snippets in VSCode is easy. Open Preferences -> User Snippets, add following to the global snippets file: "console.log": { "scope": "html,vue,javascript,typescript", "prefix": "cl", "body": "console.log($0)", "description": "Insert console log statement" } Now I get a console log statement when typing cl + TAB.

· Read the full article →