vscode-settings

How can I let vscode know when SCM visible or not?

风流意气都作罢 提交于 2021-01-29 04:46:51
问题 I would like to make toggle key with VScode's keybinding. with alt + 1 to 5 to toggle explorer and search, scm, debug extension I could find "explorerViewletVisible" or "searchViewletVisible" But I couldn't find visibilities of scm (source control) and debug, extensions. I use "sideBarVisible" for these key but it is not a perfect solution. Does Anyone know right 'when expression' of these situations? { "key": "alt+1", "command": "workbench.view.explorer", }, { "key": "alt+1", "command":

Shortcut for opening the definition file in a split vertical group in vscode

岁酱吖の 提交于 2021-01-28 09:59:56
问题 Are there any shortcuts to open the definition (e.g.: a method definition) in a split vertical group? By ctrl + click on the usage of method, it opens in a new tab. It bothers me, because I have to leave my own tab. (I know that after opening in a new tab, by pressing ctrl + \ it will be open it in a new group, but this also has the same problem: I lose my own tab, and a second problem: when I want to close the definition file, I have to close it from both the 2nd group and the 1st group.)

Shortcut for opening the definition file in a split vertical group in vscode

六月ゝ 毕业季﹏ 提交于 2021-01-28 09:53:34
问题 Are there any shortcuts to open the definition (e.g.: a method definition) in a split vertical group? By ctrl + click on the usage of method, it opens in a new tab. It bothers me, because I have to leave my own tab. (I know that after opening in a new tab, by pressing ctrl + \ it will be open it in a new group, but this also has the same problem: I lose my own tab, and a second problem: when I want to close the definition file, I have to close it from both the 2nd group and the 1st group.)

How to disable displaying comments at the end of array in VS Code?

雨燕双飞 提交于 2021-01-28 09:18:43
问题 The VS Code displays comments at the end of array. How to disable this feature? Original code var foo = <Foo>[ new Foo() ]; Displayed as var foo = <Foo>[ new Foo() ]; // Foo[] Where the comment // Foo[] was displayed automatically. 来源: https://stackoverflow.com/questions/49710847/how-to-disable-displaying-comments-at-the-end-of-array-in-vs-code

How to I remove whole line highlighting in VScode?

拥有回忆 提交于 2021-01-28 07:13:48
问题 I want VSCode line highlight to look like this Currently, it looks like this Basically I dont want VSCode to highlight the entire line. 回答1: add this to your settings.json (global or project) "workbench.colorCustomizations": { "editor.lineHighlightBackground": "#00000000" }, Set the line highlight to a transparent color 回答2: Look at the options for this setting: Editor: Render Line Highlight options are none , gutter , line and all You cannot just highlight the text part of the line. If that

How to hide file paths when running Python scripts in VS Code?

混江龙づ霸主 提交于 2021-01-28 00:34:26
问题 Every time I run my code, the terminal at the bottom is displaying this long name (I think the file location) as well as whatever output it's supposed to display. Is there a way to get that to go away? This is what it looks like: administrator@Machintosh-2 Exercise Files Python % /user/bin/python3... Hello world! administrator@Machintosh-2 Exercise Files Python % 回答1: AFAIK, there is no way to hide the paths, because the VS Code Integrated Terminal is basically using your OS/system's

Is there a way to set up a shortcut to call Build Tasks in VS Code?

安稳与你 提交于 2021-01-27 02:55:42
问题 Currently, I have a Build Task set up in Visual Studio Code (not Visual Studio). When I press Ctrl + Shift + B , I get a list of my build tasks, I then have to select my task and then it will compile and run my program. Is there an easier way to do this, so instead of Ctrl + Shift + B -> Enter , I can just press one button and have a preset Build Task run? Either a keyboard button or a GUI button will work great. 回答1: Mark the task as your default build task via Terminal -> Configure Default

VS Code Terminal Java Hide Path

假如想象 提交于 2021-01-24 09:42:26
问题 I'm just starting practicing Java in VS Code. So, when an output is displayed in the Terminal, how can I hide all that unnecessary information with the path from showing every time? All I want to see is just my program data. sh-3.2$ /Library/Java/JavaVirtualMachines/jdk-11.0.5.jdk/Contents/Home/bin/java -Dfile.encoding=UTF-8 -cp "/Users/Alex/Documents/My Java Project/bin" app.MyClass Enter username test Username is: test sh-3.2$ Thanks. 回答1: so to do so first go in preferences-> settings and

Import “Path.to.own.script” could not be resolved Pylance (reportMissingImports) in VS Code using python 3.9x on Lubuntu 20.04

谁说我不能喝 提交于 2021-01-21 09:25:29
问题 It is a similar situation I'd encountered several months ago using pylint prior to pylance: My python 3.9x - script (using VS Code on Lubuntu 20.04 LTS ) starts with the following import of custom "tools": import sys sys.path.append( '/home/andylu/Dokumente/Allgemeines_material/Sonstiges/Programming/Python/Scripts/' ) import General.Misc.general_tools as tools Now, Pylance states Import "General.Misc.general_tools" could not be resolvedPylance (reportMissingImports) even though when executing

How to configure VSCode for GTK3 for intellisense / build / debug and g++

橙三吉。 提交于 2021-01-21 09:19:06
问题 I'm using g++ GTK3 VSCode How do I get the following to work: Intellisense / code completion for gtk Buiding inside VSCode Debugging with VSCode Problem: VSCode does not find includes - especially #include <gtk/gtk.h> is red in source. 回答1: The important thing to note is, that you need to tell VSCode the include paths and compiler flags to work properly. First step: Open the target folder in VSCode. Now you should have a new hidden folder .vscode in there. Open it. You want to apply the