visual-studio-code

VSCode extension runs from development but does not work when packaged using webpack

荒凉一梦 提交于 2021-01-29 07:35:15
问题 I've built, run, packaged, and published an extension but the packager complains about 2509 files, 4.28MB and suggested using a bundler. I've followed the instructions on Bundling Extension and finally got it to build and run in my development environment using the extensionHost. After publishing this new package (14 files, 303.51KB) I find that while my contributed viewContainer and views are visible, it appears that my activate() function is never called. I've put vscode.window

How to show Flutter Widget documentation with Visual Studio Code IntelliSense?

爷,独闯天下 提交于 2021-01-29 07:31:02
问题 So, how can I show a Widget Documentation with VSCode auto complete? As we can see in this link, when hitting CTRL + SPACE with Android Studio and typing in a widget, it'll show its documentation. However, I couldn't find a way in Visual Studio Code to show a Widget documentation, only this. I know it's possible to hover the mouse over the Widget, but I don't want to read its doc after typing it, but instead, before. 来源: https://stackoverflow.com/questions/63350568/how-to-show-flutter-widget

The console output of my vscode looks strange, how to fix it?

China☆狼群 提交于 2021-01-29 07:18:46
问题 I am using vscode to write c++ programs in macOS. However I find it hard to debug, and the output of the console is always out of format. My code is like #include <stdio.h> #include <iostream> using namespace std; int main() { printf("Hello World\nWelcome to go to C++\n"); cout << "hello world" << endl; return 0; } And the output of the console is =thread-selected,id="1" @"Hello World\r\n" @"Welcome to go to C++\r\n" @"hello world\r\n" So is there any configuration I forget to set? Or there's

Build failed, debugger for Java, cannot resolve

﹥>﹥吖頭↗ 提交于 2021-01-29 07:06:46
问题 I get the the pop-up Build failed debugger for java. I previously had trouble running java after upgrading from JDK 8 to JDK 14 but now I can but I can't run the commands javac and java from the integrated terminal of VScode . I have tried clearing the WorkspaceStorage but it isn't working. I am not really familiar with all this; any help is appreciated. Edit: The java commands are now working by implementing this. The debugger is not. 来源: https://stackoverflow.com/questions/63729693/build

Suppress ESLint warnings in VSCode

依然范特西╮ 提交于 2021-01-29 06:58:45
问题 I am using ESLint extension in VSCode to format and check my JavaScript code. However, I don't want ESLint to show me warnings (red lines below code), esp. the ones related to code formatting, but still do the formatting every time I save the file. Is it possible to do this? Here is my VSCode config: { "editor.fontSize": 14, "explorer.openEditors.visible": 0, "files.autoSave": "onFocusChange", "terminal.integrated.fontSize": 14, "terminal.integrated.lineHeight": 1.3, "terminal.integrated

Suppress ESLint warnings in VSCode

我的未来我决定 提交于 2021-01-29 06:53:02
问题 I am using ESLint extension in VSCode to format and check my JavaScript code. However, I don't want ESLint to show me warnings (red lines below code), esp. the ones related to code formatting, but still do the formatting every time I save the file. Is it possible to do this? Here is my VSCode config: { "editor.fontSize": 14, "explorer.openEditors.visible": 0, "files.autoSave": "onFocusChange", "terminal.integrated.fontSize": 14, "terminal.integrated.lineHeight": 1.3, "terminal.integrated

VSCode hyperlink between results in one file to different file:line

為{幸葍}努か 提交于 2021-01-29 06:30:41
问题 I have some search results stored in a file, say results.foo. These results provide the file name and line number of each matching result. They look something like this: bar1.c@123, bar2.c@678, bar2.c@2345, bar3.c@444 What I'd like to do is, open results.foo in VSCode, have it scan the file (based on the extension), and "know" that clicking on the "123" in results.foo should open file bar1.c to line 123. problemMatcher gets very close, but this seems action oriented (must invoke an external

How to make VSCode's python debugger skip stepping into some modules when debugging

℡╲_俬逩灬. 提交于 2021-01-29 06:26:46
问题 In vscode's python (ms-python) extension, is there a way to make the debugger (debugpy) not to step-into functions defined in specific modules. I have found justMyCode but it will skip entering into external modules only (like members of stdlib) while I need to skip my own modules sometimes. I saw some debug adaptors for some other languages implement skipFiles property. Is there anything similar for python? 回答1: Going thru debugpy code I found this undocumented feature which works like a

VSCode hyperlink between results in one file to different file:line

扶醉桌前 提交于 2021-01-29 06:19:51
问题 I have some search results stored in a file, say results.foo. These results provide the file name and line number of each matching result. They look something like this: bar1.c@123, bar2.c@678, bar2.c@2345, bar3.c@444 What I'd like to do is, open results.foo in VSCode, have it scan the file (based on the extension), and "know" that clicking on the "123" in results.foo should open file bar1.c to line 123. problemMatcher gets very close, but this seems action oriented (must invoke an external

Show current branch on terminal

风流意气都作罢 提交于 2021-01-29 04:53:54
问题 Is there any way to show in Terminal of VS Code to show in brackets current branch ? I saw it somewhere but not sure how it can be done. By some extension or whatever.. C:/myUser/project> git status I would like to see it something like: C:/myUser/project>(master) git status 回答1: For Linux Terminal You can modify the PS1 variable. PS1 is a Bash Environment Variable that represents the primary prompt string which is displayed when the shell is ready. You can achieve your result by modifying