Search VSCode in subfolder, not the whole workspace
Two options: Left-click the folder in the Explorer and use ALT+SHIFT+F Right-click the folder in the Explorer and choose “Find in folder…” This will give you a slightly changed search bar:
Two options: Left-click the folder in the Explorer and use ALT+SHIFT+F Right-click the folder in the Explorer and choose “Find in folder…” This will give you a slightly changed search bar:
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
Yes, you can avoid this prompt, without removing the passphrase. To do so is usually fairly simple and relies on the ssh-agent program. First, before starting VSCode, at a bash shell prompt, run: $ eval `ssh-agent` This will start an ssh-agent process in the background that will remember the decrypted private key in its memory. … Read more
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” }
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
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
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
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
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
The defaults of VS Code puzzle me, but fortunately there is a way to override them. I spent hours searching for a way to expose these files in the Explorer view, and only found it through experimenting based on what I already had for the search: “search.useIgnoreFiles”: false, “files.useIgnoreFiles”: false,