visual-studio-code

How to efficiently copy code from editor to search field in VS Code using vscodevim?

☆樱花仙子☆ 提交于 2021-02-10 12:21:32
问题 This is currently how I copy code from an editor to a search field in VS code using vscodevim. Select text in editor somehow Right click to open up the contextual menu (since pressing Ctrl+C does not seem to work on Ubuntu, even when in input mode, and 'p' does not work in the search field) and click copy Press Ctrl+Shift+F to open the search field Press Ctrl+V I'm pretty sure this is not how copying from an editor to search field is intended to work. It it the steps 1 and 2 I would like to

vscode building and running from source hangs

最后都变了- 提交于 2021-02-10 06:17:37
问题 I'm building vscode using the instructions here https://github.com/Microsoft/vscode/wiki/How-to-Contribute#build-and-run-from-source. When I get to the yarn run watch command, it hangs at Finished compilation with 0 errors after 54926 ms . What's going on? nodejs: 8.9.4 yarn 1.3.2 npm 5.6.0 回答1: I was running yarn run watch and encountered this problem. I checked with du -s in the repo's folder a few times: no change, so I killed the command. After killing yarn run watch I then ran yarn watch

vscode building and running from source hangs

拥有回忆 提交于 2021-02-10 06:16:06
问题 I'm building vscode using the instructions here https://github.com/Microsoft/vscode/wiki/How-to-Contribute#build-and-run-from-source. When I get to the yarn run watch command, it hangs at Finished compilation with 0 errors after 54926 ms . What's going on? nodejs: 8.9.4 yarn 1.3.2 npm 5.6.0 回答1: I was running yarn run watch and encountered this problem. I checked with du -s in the repo's folder a few times: no change, so I killed the command. After killing yarn run watch I then ran yarn watch

How to exclude all folders except one folder in vscode?

人走茶凉 提交于 2021-02-10 05:54:07
问题 └── target ├── W350 ├── W400 ├── W600 ├── W600_HW_V2 ├── W600_KT_HW_V2 ├── W600_KT_HW_V2_neutral ├── W600_TK ├── W650 ├── W650_HW_V2 └── W750 I want to exclude all folders except W600_KT_HW_V2 . VSCode should then show this tree: └── target └── W600_KT_HW_V2 What should I do? 回答1: In general, you could do this: "files.exclude": { // "**/node_modules": true, "**/[^1]*": true, // all you need in your example "**/1[^2]*": true, "**/12[^3]*": true }, In your case, only the first "**/[^1]*": true,

Visual Studio Code, Conda, and Python Environments (I cannot get it working)

↘锁芯ラ 提交于 2021-02-10 05:37:14
问题 I am setting up Visual Studio Code on my pc and am running into difficulties with the python environment I created and Visual Studio Code. However, when running some test code, I get an import error.. I installed Python 3.7.3 with miniconda to 'C:\Python37', and then created a clone of the base environment named 'sci' and installed some packages (numpy, pandas, matplotlib, scipy, scikit-learn) using cmd. I tested the install in cmd with commands as follows: conda activate sci python import

Flutter initializaiton in VSCode

最后都变了- 提交于 2021-02-10 04:14:22
问题 I've been working on a flutter project using VS Code. And when I opened my project today, there is a notification stating "Initializing flutter. This may take a few minutes", and it's struck there. Also, all the commands such as "flutter run" and "flutter doctor" are perfectly running and I am able to run my app through the terminal. But the other options such as Run Without Debugging are not working, and also the code auto-complete is showing no suggestions. Can anyone please help me in

How to debug keybinds in Visual Studio Code

北慕城南 提交于 2021-02-10 03:57:35
问题 I am trying to get the keybind for adding new cursors to work in Visual Studio Code ( Ctrl + Alt + DownArrow / UpArrow ). Currently pressing this combination of keys has no obvious effect, but is listed in my command palette as creating new cursors (and selecting the option from the command palette works as expected). Therefore I am wondering if there is an easy way to work out why it isn't working, for example an output of what key combinations the editor receives and what commands it

How to get VS Code debug data like breakpoints, steps, line code

拟墨画扇 提交于 2021-02-09 11:13:01
问题 I'm working on an academic software visualization project that aims to capture debug sessions and display graphically. For this, I am trying to create a Visual Studio Code Extension where I can get the data exchanged with the current language debugger, such as added breakpoints, stepsinto, stepsover, debug session start, debug file, context variables, line code debugged . That is, the same data that is displayed in the VS Code windows: VARIABLES, WATCH, CALL STACK, LOADED SCRIPTS and

How to get VS Code debug data like breakpoints, steps, line code

别等时光非礼了梦想. 提交于 2021-02-09 11:11:58
问题 I'm working on an academic software visualization project that aims to capture debug sessions and display graphically. For this, I am trying to create a Visual Studio Code Extension where I can get the data exchanged with the current language debugger, such as added breakpoints, stepsinto, stepsover, debug session start, debug file, context variables, line code debugged . That is, the same data that is displayed in the VS Code windows: VARIABLES, WATCH, CALL STACK, LOADED SCRIPTS and

VSCode extension: How to render colored output in output channel?

霸气de小男生 提交于 2021-02-09 11:09:57
问题 I have custom output from API and I want to format it to string with some colored values. 回答1: The output channel can be colorized with a TmLanguage grammar. The Output Colorizer extension extension does exactly that: You can do this by targeting the text/x-code-output mimetype: "contributes": { "languages": [{ "id": "code-output", "mimetypes": [ "text/x-code-output" ] }], "grammars": [{ "language": "code-output", "scopeName": "code.output", "path": "./syntaxes/code-output.tmLanguage" }] }