Customisations I use for VS-Code
snippets
are copied to %APPDATA%\Code\User\snippets
.
Control left/right arrow is fine for normal english.. but when I'm coding I want to skip the pesky punctuation and code characters.. Go the next/previous SPACE.
-
Install vscode-powertools
-
Define powertools commands in settings:
%APPDATA%\Code\User\settings.json
"ego.power-tools": { "commands": { "goToNextWhiteSpaceInDocument": { // Cannot use environment variables.. yet. https://github.com/microsoft/vscode/issues/2809 // "script": "${env:APP_DATA}/goToNextWhiteSpaceInDocument.js", "script": "[absolute path to APPDATA with forward slashes]/Code/User/goToNextWhiteSpaceInDocument.js", }, "goToPreviousWhiteSpaceInDocument": { // Cannot use environment variables.. yet. https://github.com/microsoft/vscode/issues/2809 // "script": "${env:APP_DATA}/goToPreviousWhiteSpaceInDocument.js", "script": "[absolute path to APPDATA with forward slashes]/Code/User/goToPreviousWhiteSpaceInDocument.js", } } }
-
Copy command files.
- Copy file
commands/goToPreviousWhiteSpaceInDocument.js
to%APPDATA%\Code\User\goToPreviousWhiteSpaceInDocument.js
. - Copy file
commands/goToNextWhiteSpaceInDocument.js
to%APPDATA%\Code\User\goToNextWhiteSpaceInDocument.js
.
- Copy file
-
Define keyboard shortcuts in
%APPDATA%\Code\User\keybindings.json
{ "key": "shift+alt+]", "command": "goToNextWhiteSpaceInDocument" }, { "key": "shift+alt+[", "command": "goToPreviousWhiteSpaceInDocument" }