visual-studio-code

Vscode Typescript Intellisense showing only first option?

帅比萌擦擦* 提交于 2020-12-03 10:25:31
问题 I'm working on my React Native (TypeScript) app and today, all of a sudden ( nothing updated , no settings changed ) my Intellisense started showing only first suggestion, no matter what: This problem is not specific to a particular class, and I've restarted Vscode multiple times (restarted TS language server, deleted all Vscode caches from ~/Library/Caches/ (both Code folder and everything that starts with com.microsoft basically) but no avail. How can I get rid of it? (Vscode Insiders 1.51

Vscode Typescript Intellisense showing only first option?

佐手、 提交于 2020-12-03 10:25:23
问题 I'm working on my React Native (TypeScript) app and today, all of a sudden ( nothing updated , no settings changed ) my Intellisense started showing only first suggestion, no matter what: This problem is not specific to a particular class, and I've restarted Vscode multiple times (restarted TS language server, deleted all Vscode caches from ~/Library/Caches/ (both Code folder and everything that starts with com.microsoft basically) but no avail. How can I get rid of it? (Vscode Insiders 1.51

Visual Studio Code use input text file on debug

冷暖自知 提交于 2020-12-02 07:20:10
问题 I am trying to follow the direction from this post Visual Studio Code redirect input on debug but when I add the console config to the launch.json file "console": "integratedTerminal" it throws a "Property console is not allowed". and when I debug the program it still waits on input and never reach break point like I would if I start in shell like "./a.out 1 test1.txt" "./a.out 1 <test1.txt" Full config { "version": "0.2.0", "configurations": [ { "name": "(lldb) Launch", "type": "cppdbg",

How change the color of rulers in Visual Studio Code

我是研究僧i 提交于 2020-12-02 04:58:09
问题 Not sure if this feature is included in the VSCode settings yet, but I'd love to change the ruler color from it's default grey. Tried: "editor.rulers.color": "color" But got an "unknown configuration setting error. 回答1: In settings.json : "workbench.colorCustomizations": { "editorRuler.foreground": "#ff333388" } 回答2: From the February 2020 v1.43 release, you can set per-ruler colors. Use like this: "editor.rulers": [ { "column": 80, "color": "#ff00ff" }, 100, // a ruler with the default or

How change the color of rulers in Visual Studio Code

一世执手 提交于 2020-12-02 04:58:02
问题 Not sure if this feature is included in the VSCode settings yet, but I'd love to change the ruler color from it's default grey. Tried: "editor.rulers.color": "color" But got an "unknown configuration setting error. 回答1: In settings.json : "workbench.colorCustomizations": { "editorRuler.foreground": "#ff333388" } 回答2: From the February 2020 v1.43 release, you can set per-ruler colors. Use like this: "editor.rulers": [ { "column": 80, "color": "#ff00ff" }, 100, // a ruler with the default or

How to reset Visual Studio Code key bindings?

大城市里の小女人 提交于 2020-12-02 01:55:41
问题 I have been experimenting with my vs-code key bindings. I would like to reset the key-bindings to the original settings. How do I do that? I am on Linux Mint 18. I tried removing all the records from the keybindings.json 回答1: Try this documentation page about key binding in VSCode: https://code.visualstudio.com/docs/getstarted/keybindings Open a directory that contains user settings (https://code.visualstudio.com/docs/getstarted/settings) and try to remove user key bindings file. 回答2: Here

How to read input when debugging in C++ in Visual Studio Code?

为君一笑 提交于 2020-12-01 12:00:30
问题 I'm using VSCode for debugging my CPP program in MacOSX . I've 2 programs. Program1 int main(){ string a; a = "a"; a += 'b'; cout<<a<<endl; return 0; } Program2 int main(){ string a; cin>>a; a += 'b' cout<<a; return 0; } In program1 I'm directly assigning the string a and when I debug the program in VSCode by first compiling it in terminal using : g++ -g filename.cpp and then selecting the Starting Debugging option in the Debugging menu . I'm able to see the state of the string a variable by

How to read input when debugging in C++ in Visual Studio Code?

对着背影说爱祢 提交于 2020-12-01 11:57:50
问题 I'm using VSCode for debugging my CPP program in MacOSX . I've 2 programs. Program1 int main(){ string a; a = "a"; a += 'b'; cout<<a<<endl; return 0; } Program2 int main(){ string a; cin>>a; a += 'b' cout<<a; return 0; } In program1 I'm directly assigning the string a and when I debug the program in VSCode by first compiling it in terminal using : g++ -g filename.cpp and then selecting the Starting Debugging option in the Debugging menu . I'm able to see the state of the string a variable by

How to read input when debugging in C++ in Visual Studio Code?

我们两清 提交于 2020-12-01 11:57:26
问题 I'm using VSCode for debugging my CPP program in MacOSX . I've 2 programs. Program1 int main(){ string a; a = "a"; a += 'b'; cout<<a<<endl; return 0; } Program2 int main(){ string a; cin>>a; a += 'b' cout<<a; return 0; } In program1 I'm directly assigning the string a and when I debug the program in VSCode by first compiling it in terminal using : g++ -g filename.cpp and then selecting the Starting Debugging option in the Debugging menu . I'm able to see the state of the string a variable by

How can I get VS's python syntax highlighting in VS code?

自闭症网瘾萝莉.ら 提交于 2020-12-01 10:15:11
问题 It seems like VS Community with python tools has a better syntax highlighting than VS Code with "Python" by Don Jayamanne. As you can see in the picture attached, VS Community highlights in ¿purple? the packages imported, and lightblue for classes while VS code just don't. 回答1: I ran into the same issue and some VS Code themes are not supporting syntax highlighting atleast for me. I tried with Ruby and Python and the theme I was using was Dark(Visual Studio). Changing to Dark+ (Default Dark)