I am looking for a way to assign a keyboard shortcut that would toggle all breakpoints in VS Code.
The same key should either disable them all or enable them all back, i.e. it is not about only disabling or only enabling them via two different shortcuts.
I cannot find any action responsible for that. There are only disableAllBreakpoints, enableAllBreakpoints, removeAllBreakpoints and reapplyBreakpointsAction.
The last one sounds somewhat promising but I am not sure if this is the one that I am looking for? It does not toggle them so perhaps this is not it?
Essentially, I am looking for a toggleAllBreakpoints but I am not sure if it exists.
My VS Code version is:
Version: 1.63.0
Commit: 7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
Actually, I have found it already - that can be achieved with toggleBreakpointsActivatedAction.
Related
VSCode used to create plots from Plots.jl in Julia into a separate pane. For some reason it now plots in the same pane as the editor and covers the code making it difficult to tie the code and the graph together. What setting did I inadvertently change (I didn't think I changed any of them honestly) that results in the change of VS Code's behavior?
Tried the #antonio Parrella 's suggestion but it still doesn't work. Julia on VS Code is still opening a separate pane for the plot that covers the editor rather than displaying it side by side with the editor.
Example of code :
using Plots, Random
plot(1:5, rand(5))
Julia VS Code Version:
Version: 1.63.2 (user setup)
Commit: 899d46d82c4c95423fb7e10e68eba52050e30ba3
Date: 2021-12-15T09:40:02.816Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.22000
Settings(Ctrl + ,) > Workbench > Editor: Reveal If Open.
Then tick the box. Vscode turned this off by defult in the new update.
I'm running a npm script that watches for changes and recompiles my files.
With one of the latest update, when I run this script, VSC shows in the terminal window a rotating icon signalling something is running. Good in general, but extremely distracting if the task is constantly running like in this case.
It is there any option to remove or hide this status message?
Thanks!
VSC Version: 1.57.1 (system setup)
Commit: 507ce72a4466fbb27b715c3722558bb15afa9f48
Date: 2021-06-17T13:28:07.755Z
Electron: 12.0.7
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Windows_NT x64 10.0.19043
In vscode v1.59 there is a setting to disable that spinning icon animation:
The new setting terminal.integrated.tabs.enableAnimation will disable animation in the terminal tab icon. For tasks instead of a spinner the play button will be used:
I found that to return to the previous terminal behavior, I need to add the "terminal.integrated.tabs.enabled": false setting. Maybe it is an overkill, but solved my problem.
edit - nov 2022 - I didn't need this anymore, I've switched to Linux & Docker, no more coding under Windows
Does someone knows how to refer to my APPDATA folder in my vscode settings.json file?
I'm trying to set the path to my php-cs-fixer like below so, on all my development computer, the path can be retrieved.
"php-cs-fixer.executablePathWindows": "$env:APPDATA/Composer/vendor/bin/php-cs-fixer.bat",
To be clear: $env:APPDATA seems to be unsupported.
I'm using the latest version of vscode.
Version: 1.52.1 (user setup)
Commit: ea3859d4ba2f3e577a159bc91e3074c5d85c0523
Date: 2020-12-16T16:34:46.910Z
Electron: 9.3.5
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19041
I tried this on VSCode Insiders 1.53, was able to set using ~:
{
"php-cs-fixer.executablePathWindows": "~\\AppData\\Roaming\\Composer\\vendor\\bin\\php-cs-fixer.bat"
}
Seems that the ~ is transformed to match C:\Users\[you].
I know for sure that ${env:APPDATA} works because I use it in the setting : "emmet.extensionsPath": "${env:APPDATA}\\Code\\User\\Emmet Settings",
Check this documentation section. Unfortunately, this issue complains that it is not supported in every settings and extensions. I strongly suggest that every one upvote this issue so we have better chance MS takes care of it.
Today in my colleague's vscode I saw that finding references opens in sidebar.
I searched the web and I understood that it's done by Reference Search View, an extension shipped by vscode but it's not working for me. How can I enable it?
Version: 1.30.2
Commit: 61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8
Date: 2019-01-07T22:49:48.319Z
Electron: 2.0.12
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
OS: Linux x64 4.15.0-43-generic
This is a built-in extensions. It is included in VS Code 1.30+ and is enabled by default. Search #builtin references in the extension view to make sure you have not accidentally disabled it.
To show references, run the References: Find all references command. This should open the references sidebar with the reference results
Fixed!
The issue was that I was using
"command": editor.action.referenceSearch.trigger"
instead of
"command": "references-view.find"
in my keybindings.
I'm actually pleased! because I can still have the old behaviour by using the first command :)
When searching in VS Code (PowerShell), I would like to include my comments (#, <# #>) in the result. (due to language used in comments)
have tried to find a setting for this by searching this forum & Google without luck.
Can anyone point me in the right direction?
VS Code:
Version: 1.26.1
Commit: 493869ee8e8a846b0855873886fc79d480d342de
Date: 2018-08-16T18:38:57.434Z
Electron: 2.0.5
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64
By default if i search something on visual studio code, inside a powershell script which contains comments as you said, it does show up during the search itself.