vscode-settings

How to make codeRunner in VS code recognize my current working directory?

给你一囗甜甜゛ 提交于 2020-12-08 01:56:23
问题 I recently downloaded VSCode. Im doing some development work. Usually I do the following steps: 1) cd into my Dev folder 2) then code my_projects Now inside my_projects folder, its the root workspace directory. I have my VS code opened, and can navigate to following folders/files: my_projects/ > DBHelper > dbhelper.py > config.ini > PortfolioManagement > Learning Now when i open dbhelper.py, I tried the following test: import os print(os.getcwd()) I get the following: my_projects But I'm

How to make codeRunner in VS code recognize my current working directory?

六眼飞鱼酱① 提交于 2020-12-08 01:55:03
问题 I recently downloaded VSCode. Im doing some development work. Usually I do the following steps: 1) cd into my Dev folder 2) then code my_projects Now inside my_projects folder, its the root workspace directory. I have my VS code opened, and can navigate to following folders/files: my_projects/ > DBHelper > dbhelper.py > config.ini > PortfolioManagement > Learning Now when i open dbhelper.py, I tried the following test: import os print(os.getcwd()) I get the following: my_projects But I'm

How to make codeRunner in VS code recognize my current working directory?

微笑、不失礼 提交于 2020-12-08 01:54:45
问题 I recently downloaded VSCode. Im doing some development work. Usually I do the following steps: 1) cd into my Dev folder 2) then code my_projects Now inside my_projects folder, its the root workspace directory. I have my VS code opened, and can navigate to following folders/files: my_projects/ > DBHelper > dbhelper.py > config.ini > PortfolioManagement > Learning Now when i open dbhelper.py, I tried the following test: import os print(os.getcwd()) I get the following: my_projects But I'm

vscode preserve indentation when commenting out lines

戏子无情 提交于 2020-12-07 05:03:07
问题 In vscode (or most other editors I tried for that matter) when I have a block of code like this: function() { if(test1) { doThis(); andThenDoThat(); } } And I try to comment out the line andThenDoThat() e.g. by pressing Ctrl + / , I will get this: function() { if(test1) { doThis(); // andThenDoThat(); } } What I would like to get is this: function() { if(test1) { doThis(); // andThenDoThat(); } } In other words, I want the comment to preserve the original indentation of the code, and start

vscode preserve indentation when commenting out lines

白昼怎懂夜的黑 提交于 2020-12-07 04:57:51
问题 In vscode (or most other editors I tried for that matter) when I have a block of code like this: function() { if(test1) { doThis(); andThenDoThat(); } } And I try to comment out the line andThenDoThat() e.g. by pressing Ctrl + / , I will get this: function() { if(test1) { doThis(); // andThenDoThat(); } } What I would like to get is this: function() { if(test1) { doThis(); // andThenDoThat(); } } In other words, I want the comment to preserve the original indentation of the code, and start

vscode preserve indentation when commenting out lines

北慕城南 提交于 2020-12-07 04:56:58
问题 In vscode (or most other editors I tried for that matter) when I have a block of code like this: function() { if(test1) { doThis(); andThenDoThat(); } } And I try to comment out the line andThenDoThat() e.g. by pressing Ctrl + / , I will get this: function() { if(test1) { doThis(); // andThenDoThat(); } } What I would like to get is this: function() { if(test1) { doThis(); // andThenDoThat(); } } In other words, I want the comment to preserve the original indentation of the code, and start

how to keep shown the suggestions popup in vscode while moving the caret one character?

给你一囗甜甜゛ 提交于 2020-12-06 13:08:00
问题 how to keep shown the suggestions popup in visual-studio-code while moving the caret one character in the same word, so I don't have to hit ctrl-space shortcut again? 回答1: This should now be possible with VSCode 1.51 (Oct. 2020): Move cursor to select suggestions You can now move the cursor while suggestions are showing. For instance, you can trigger suggestions at the end of a word, move left to see more suggestions, and then use replace to overwrite the word. Theme: GitHub Light 回答2:

how to keep shown the suggestions popup in vscode while moving the caret one character?

99封情书 提交于 2020-12-06 13:03:18
问题 how to keep shown the suggestions popup in visual-studio-code while moving the caret one character in the same word, so I don't have to hit ctrl-space shortcut again? 回答1: This should now be possible with VSCode 1.51 (Oct. 2020): Move cursor to select suggestions You can now move the cursor while suggestions are showing. For instance, you can trigger suggestions at the end of a word, move left to see more suggestions, and then use replace to overwrite the word. Theme: GitHub Light 回答2:

VSCode autocomplete not working for OpenCV installed from source

*爱你&永不变心* 提交于 2020-12-06 07:27:25
问题 I've only found one other question asking exactly this with no answer, so I'm asking here. I am running Ubuntu 18.04, VSCode latest version. I have installed OpenCV 3.4.9 from source to /usr/local When I import cv2 and then try to type "cv2.", VSCode is unable to autocomplete. The only suggestions it makes are "bootstrap" and "os". I have no problem with autocomplete with any other module like numpy or rospy, or even when OpenCV is installed from pip. It seems the issue is only when OpenCV is

The output window in vs code is not editable, so how we can type the input when the program asks for it?

泄露秘密 提交于 2020-12-06 04:47:14
问题 The Error is shown when I input anything in the output window 回答1: As the name implies, output window is only for displaying output. It seems that you're using VSCode Coderunner extension, which by default runs program in output window. To change it to terminal, simply put : "code-runner.runInTerminal": true In your VSCode User Settings (shortcut: Ctrl + , ). 回答2: Type the input in the console, not the output window. 回答3: you cant input anything in output window. if you want make any change