How can I globally set the PATH environment variable in VS Code?

If you only need the $PATH to be set in the integrated terminal, you can use VS Code’s terminal.integrated.env.<platform> variable (added in version 1.15). Press Cmd+Shift+P (or Ctrl+Shift+P) and search for “Preferences: Open Settings (JSON)”. Then add the following entry to the settings file: “terminal.integrated.env.osx”: { “PATH”: “…:/usr/bin:/bin:…” } (Replace .osx with .linux or .windows … Read more

What are these parameter name annotations in my VS Code editor called, and how can I enable/disable them?

Those are Inlay Hints. You can enable (the default) or disable them with the setting: Editor > Inlay Hints: Enabled or change the Font Family or Font Size by searching for Inlay Hints in the Settings UI. And there is finer control for parameter names/types, variable types and more for js/ts files. For a lot … Read more

Microsoft VS Code – Jump 10 lines vertically at once

Put this into keybindings.json { “key”: “ctrl+up”, “command”: “cursorMove”, “args”: { “to”: “up”, “by”: “line”, “value”: 10 }, “when”: “editorTextFocus” }, { “key”: “ctrl+down”, “command”: “cursorMove”, “args”: { “to”: “down”, “by”: “line”, “value”: 10 }, “when”: “editorTextFocus” }, cursorMove – Move cursor to a logical position in the view args: to: A mandatory logical position … Read more

Multiple commands/tasks with Visual Studio Code

You can always use bash as your task runner and then assign arbitrary terminal commands as your tasks. { “version”: “0.1.0”, “command”: “bash”, “isShellCommand”: true, “showOutput”: “always”, “args”: [ “-c” ], “tasks”: [ { “taskName”: “My First Command”, “suppressTaskName”: true, “isBuildCommand”: true, “args”: [“echo cmd1”] }, { “taskName”: “My Command Requiring .bash_profile”, “suppressTaskName”: true, “args”: … Read more