visual-studio-code

VSCode intellisense appears if only space bar pressed in Flutter

会有一股神秘感。 提交于 2021-02-10 20:15:12
问题 I'm using VSCode to develop Flutter Apps, but, intellisense only shows up when I press space bar first. For instance when I create any widget within the widget tree, such as IconButton(icon:), the property 'icon' doesn't show up in intellisense when typing the first characters, like 'ic', only if I press the space bar, or after the property was completely typed and then if it is removed, the next time when typing, then the intellisense works fine. Does anyone else having the same issue? it is

How to set multiple launch.json or different arguments in same project folder at Visual Studio Code?

为君一笑 提交于 2021-02-10 19:10:35
问题 I usually run python code at Visual Studio Code. And sometimes I open a folder which contains several applications. For example, I use examples repository like https://github.com/pytorch/examples If I open pytorch/examples folder, it contains many main.py and they need different arguments for each. In such a case, is there any ways to prepare multiple launch.json ? configurations in launch.json is array , so it may be a solution in my case.. 回答1: As you had begun to realize, VS Code allows

How to set multiple launch.json or different arguments in same project folder at Visual Studio Code?

房东的猫 提交于 2021-02-10 19:09:14
问题 I usually run python code at Visual Studio Code. And sometimes I open a folder which contains several applications. For example, I use examples repository like https://github.com/pytorch/examples If I open pytorch/examples folder, it contains many main.py and they need different arguments for each. In such a case, is there any ways to prepare multiple launch.json ? configurations in launch.json is array , so it may be a solution in my case.. 回答1: As you had begun to realize, VS Code allows

How to set multiple launch.json or different arguments in same project folder at Visual Studio Code?

落爺英雄遲暮 提交于 2021-02-10 19:06:25
问题 I usually run python code at Visual Studio Code. And sometimes I open a folder which contains several applications. For example, I use examples repository like https://github.com/pytorch/examples If I open pytorch/examples folder, it contains many main.py and they need different arguments for each. In such a case, is there any ways to prepare multiple launch.json ? configurations in launch.json is array , so it may be a solution in my case.. 回答1: As you had begun to realize, VS Code allows

Breakpoints are triggered incorrectly in Visual Studio Code with Vue.js project

南笙酒味 提交于 2021-02-10 16:55:11
问题 I am trying to setup VS Code + Vue.js to work on some Vue.js project. I already did some steps, but I cannot make breakpoints work correctly. if I start the website with npm run dev And then start debugging in VS Code with Debugger for Chrome and set a breakpoint on a certain line of code in a .vue file, the line is normally marked with the red circle, but the breakpoint is triggered in different app.js file in the code like this: // module exports.push([module.i... // exports /***/ }), what

How to mark a file as an embedded resource in Visual Studio Code?

杀马特。学长 韩版系。学妹 提交于 2021-02-10 16:00:09
问题 I'm writing a c# library, and trying out Visual Studio Code. I'm generally liking what I'm seeing, but there are some things that I'm finding frustrating, that are really easy in Visual Studio standard version... for example, marking a file as an embedded resource. Is this possible without some complicated voodoo? Is there an extension I need to install? It's not obvious to me. 回答1: You have to edit the .csproj and change the node that represents your file to <EmbeddedResource Include=

SIGINT in Visual Studio Code Integrated Terminal

孤人 提交于 2021-02-10 15:53:14
问题 In the regular windows terminal Control+C is keybound to SIGINT allowing you to break a running process. Visual Studio Code's Integrated Terminal enables you to have passthrough key commands through terminal.integrated.commandsToSkipShell, which is quite useful. Although Control+C is keybound to copy by default, SIGINT isn't readily apparent in the settings to set up a keybind for. How can you send SIGINT to the Visual Studio Code Integrated console, and preferably keybind it, so that you can

Get vscode registerCompletionItemProvider to work in a json file with a `word.` trigger

我只是一个虾纸丫 提交于 2021-02-10 15:46:12
问题 I am using this code to try to register a CompletionProvider in my extension. It is essentially the code from the sample completionProvider sample https://github.com/microsoft/vscode-extension-samples/blob/master/completions-sample/src/extension.ts. I want it triggered by a . as in "launches." in my extension command in keybindings.json ultimately but it is doing nothing in any json file. Nothing happens, no error. function activate(context) { loadLaunchSettings(context); activeContext =

VScode caching Issue? File not showing newest changes

≯℡__Kan透↙ 提交于 2021-02-10 15:15:38
问题 I've never seen this before so thought I'd ask here. My vscode isn't showing the latest changes in a file. When I open said file with vim, the file is up-to-date as expected. If I open that same file in vscode, it shows something else. I've tried restarting vscode, using the 'Clear Editor History' command to clear the editor cache... I've restarted my machine. Nothing seems to work. Any thoughts? 来源: https://stackoverflow.com/questions/53273047/vscode-caching-issue-file-not-showing-newest

VScode caching Issue? File not showing newest changes

北城以北 提交于 2021-02-10 15:14:20
问题 I've never seen this before so thought I'd ask here. My vscode isn't showing the latest changes in a file. When I open said file with vim, the file is up-to-date as expected. If I open that same file in vscode, it shows something else. I've tried restarting vscode, using the 'Clear Editor History' command to clear the editor cache... I've restarted my machine. Nothing seems to work. Any thoughts? 来源: https://stackoverflow.com/questions/53273047/vscode-caching-issue-file-not-showing-newest