VS Code Customize Tab Colors

VS Code documents color customizations for tabs in the theme color api. To edit the tab colors you can use the following identifiers: { “workbench.colorCustomizations”: { “tab.activeBackground”: “#ff0000”, “tab.inactiveBackground”: “#ff0000” } } You add that to your settings.json file To change the tabs header you can use the following: “workbench.colorCustomizations”: { “editorGroupHeader.tabsBackground”: “#ff0000”, } You … Read more

Make Ctrl+C=copy and Ctrl+Shift+C=interrupt in VSCode terminal

With Visual Studio Code 1.28.0 there is a command, workbench.action.terminal.sendSequence, to send arbitrary keypresses to the terminal. See Send text from a keybinding to the terminal. { “key”: “ctrl+shift+c”, “command”: “workbench.action.terminal.sendSequence”, “args”: { “text”: “\u0003” }, “when”: “terminalFocus” }

Random High CPU Usage

first you need to find which process eating your cpu, for that vscode has inbuilt process Explorer. You can find at Help => Open Process Explorer For me the culprit is electron_node tsserver.js, I solved it by turning on the typescript.disableAutomaticTypeAcquisition, for that you need to go Settings => Extensions => TypeScript and check the … Read more

Move to the next line when commenting a line in VS Code

See https://stackoverflow.com/a/75808372/836330 for more on runCommands. No extension is needed anymore as macro-like functionality has been built into vscode v1.77+ so these keybindings work now (in your keybindings.json): { “key”: “ctrl+/”, // whatever keybindings you want “command”: “runCommands”, “args”: { “commands”: [ “editor.action.commentLine”, “cursorDown” ] }, “when”: “editorTextFocus” }, { “key”: “shift+alt+A”, “command”: “runCommands”, “args”: … Read more

User-Specific Workspace Settings in VS Code

You can override .vscode/settings.json with settings in code-workspace.json, but more general and flexible overriding does not seem to be possible – I recommend voting for Add ability to extend from other settings files. If you commit both .vscode/settings.json and [name].code-workspace, then it seems like it’ll be difficult for team members to customize their settings. Nested … Read more

How can I run a VSCode command as a task

So for instance you could do this: { “label”: “run copyLinesDown command”, // “type”: “shell”, “command”: “${command:editor.action.copyLinesDownAction}”, // “command”: “${command:extension.gist.open}” // etc // “runOptions”: { // “runOn”: “folderOpen” // } }, That is a task in tasks.json. When you run that task, the current line in the active editor will be copied down. So I … Read more

How can I implement my own code outline layout in vscode?

Okay, my request is now solved. The CodeMap extension, is basically the extension I’m looking for. I followed their guide on https://github.com/oleg-shilo/codemap.vscode/wiki/Adding-custom-mappers I created a custom dedicated mapper “mapper_X.js” saved it to an arbitrary location, and in my vscode user-settings I pasted “codemap.X”: “mylocation\\mapper_X.js”, (as described in the github guide). I then opened up a … Read more

tech