visual-studio-code

Tab autocomplete in Visual Studio Code doesn't work

荒凉一梦 提交于 2021-02-07 12:01:00
问题 I am trying to enable tab auto-completion with pressing "Tab" button but it doesn't work for me and it always works as Tab character when it is supposed to work as autocomplete. Which setting or shortcut should I enable or disable to have this feature? With pressing "Tab", I will get this; PS: Pressing "Enter" works fine and accepts the suggestion and I can disable it by setting the following setting to off. 回答1: Try changing tab completion setting to On: Editor › tab Completion "editor

VSCode running Python 2 instead of 3

梦想与她 提交于 2021-02-07 11:58:46
问题 I am using Python with VSCode, and if I use Cmd+Shift+P and type Run Code, it runs the code with Python2 even though I have specified it to use Python3. I have read this tutorial: How to force VSCode to use Python 3 instead of Python 2? but I do not understand how to change it. (and I can't comment because I don't have enough reputation yay) Could anyone help? Thanks! Maybe it could be related to the fact that the mini terminal at the bottom runs "python -u " instead of "python3 -u "? Does

Cannot connect to the target: connect ECONNREFUSED 127.0.0.1:9222

限于喜欢 提交于 2021-02-07 11:58:41
问题 I am trying to debugg my angular code with vscode but doesnt work. Cannot connect to the target: connect ECONNREFUSED 127.0.0.1:9222 回答1: I'm not sure you still need it, but I found the solution, since I was facing the same issue myself. You must launch Chrome with remote debugging enabled in order for the extension to attach to it. Windows Right click the Chrome shortcut, and select properties In the "target" field, append --remote-debugging-port=9222 Or in a command prompt, execute /chrome

VSCode: how to highlight editor tabs that were modified since last git commit, show git status

无人久伴 提交于 2021-02-07 11:51:29
问题 In VSCODE, how can I highlight tabs that were modified compared to previous git commit? In order to show their git status. Note: This is not a duplicate of How can I edit VS Code settings so that the tabs of modified files are highlighted?, since that question relates to unsaved changes, and this question relates to saved changes that were modified compared to the recent git commit. 回答1: v1.53 has added this functionality, see Release notes: tab decorations. Two new settings allow you to

A method to expose the VSCode active 'when Clause Contexts'

依然范特西╮ 提交于 2021-02-07 10:24:56
问题 I'm searching for a method to expose VSCode active 'when Clause Contexts' e.g 'explorerResourceIsFolder'. To give you a better understanding of my use case, here's some background on the project to which a VSCode extension is being developed. My extension will facilitate programming in and controlling VSCode by voice. Caster is a Dragonfly-Based Voice Programming Toolkit. Dragonfly is a speech recognition framework. It is a Python package which offers a high-level object model and allows its

VS Code Python Debugger “timed out waiting for debuggee to spawn”

纵饮孤独 提交于 2021-02-07 09:20:08
问题 My debugger doesn't even begin to run my code. I press F5, the debug tab opens, shows that it is loading, and after a while it says "Session-1 timed out waiting for debuggee to spawn" in a pop-up window. I'm using VS Code version 1.40.1, I have my virtual environment setup, and the debugger used to work, stopping at breakpoints and changing the color of the blue bar at the bottom of the screen. Issue appeared while messing with the open() function, but the debugger doesn't work with any file.

VS Code Python Debugger “timed out waiting for debuggee to spawn”

帅比萌擦擦* 提交于 2021-02-07 09:16:08
问题 My debugger doesn't even begin to run my code. I press F5, the debug tab opens, shows that it is loading, and after a while it says "Session-1 timed out waiting for debuggee to spawn" in a pop-up window. I'm using VS Code version 1.40.1, I have my virtual environment setup, and the debugger used to work, stopping at breakpoints and changing the color of the blue bar at the bottom of the screen. Issue appeared while messing with the open() function, but the debugger doesn't work with any file.

How to debug cake project in vscode?

大憨熊 提交于 2021-02-07 09:11:57
问题 Please provide cake project debugging steps with VS Code in Visual Studio 2015 not installed machine. I could not find any debugging steps in cake documentation. 回答1: Install Cake.CoreCLR NuGet package to your tools folder Install Cake Extension for Visual Studio Code Set up .NET Core debugger in Visual Studio Code. See http://aka.ms/vscclrdebugger for details Open the directory containing your Cake files in Visual Studio Code Create file .vscode/launch.json and add the following content

How to debug cake project in vscode?

安稳与你 提交于 2021-02-07 09:02:29
问题 Please provide cake project debugging steps with VS Code in Visual Studio 2015 not installed machine. I could not find any debugging steps in cake documentation. 回答1: Install Cake.CoreCLR NuGet package to your tools folder Install Cake Extension for Visual Studio Code Set up .NET Core debugger in Visual Studio Code. See http://aka.ms/vscclrdebugger for details Open the directory containing your Cake files in Visual Studio Code Create file .vscode/launch.json and add the following content

VSCode not recognizing includes from includepath

依然范特西╮ 提交于 2021-02-07 08:36:32
问题 I am having an issue where VSCode will recognize my include of zipper.h and then out of nowhere flip on me and tell me that there is no such file or directory. I am not sure if this is an issue with my code or includes or vs code. https://i.gyazo.com/2d35a31abf83546d8633d991bcb4752a.png https://i.gyazo.com/96ad7825e8d1c390035a4db2f789bbcf.png I have tried adding it both to my include path and windows environment path. it keeps failing for the same reason. I am very confused on what I'm doing