visual-studio-code

VSCode - XDebug connected to client but break points does not work

心不动则不痛 提交于 2021-02-11 13:22:50
问题 I work on PHP application and I want to debug my website. I'm working on IDE VSCode on Windows 10. I use Docker to launch my website in WSL2. I have configured XDebug in my php-fpm:7.3 container. root@00376c075cd3:/var/www# php -version PHP 7.3.18 (cli) (built: May 15 2020 13:33:15) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.18, Copyright (c) 1998-2018 Zend Technologies with Xdebug v2.9.8, Copyright (c) 2002-2020, by Derick Rethans On VSCode, I have configured my launch

Running the contributed command: 'code-runner.stop' failed

≡放荡痞女 提交于 2021-02-11 12:32:37
问题 None of the JavaScript Programs that I have written over the past few months are working. So today, I am back at JS-101. I have a Node.js Module called app.js, stored in a folder called Test-02 Here is the complete program: console.log('Hello World'); When I go into the Command Prompt and run the program, the output is what you would expect: Hello World When I run the program from the Visual Studio Code Terminal, I type >node app.js and the result is what you would expect: Hello World But

Color different variables differently in VS Code

戏子无情 提交于 2021-02-11 12:31:15
问题 In Visual Studio Code, is it possible to have different local variables be colored differently? Here's an example from a Medium article of what this looks like: And one from PyCharm: This is usually called "semantic highlighting" or "semantic coloring", although VS Code uses that to mean syntax highlighting that more intelligently detects whether a word is a regular variable, function, etc. and color that accordingly. My question here is basically the same as this 2015 GitHub issue that was

Flutter build iOS FAILED

痴心易碎 提交于 2021-02-11 12:29:40
问题 I build a new flutter project from VSCode, and run on iOS simulator (iphone 11), it shows: Launching lib/main.dart on iPhone 11 in debug mode... Xcode build done. 11.2s Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED ** Xcode's output: ↳ error: unable to spawn process (No such file or directory) (in target 'Runner' from project 'Runner') error: unable to spawn process (No such file or directory) (in target 'Runner' from project 'Runner') note: Using new build system

Installing Magick++ in visual studio 2019

眉间皱痕 提交于 2021-02-11 12:28:13
问题 I have tried to install Magick++.h in visual studio 2019. First I download ImageMagick++ and installed my pc. Then I copied include & library path to project properties. there is no error when I am writing the program. after compiling, there is a build error. Can someone help to solve this problem? 来源: https://stackoverflow.com/questions/61864570/installing-magick-in-visual-studio-2019

How to activate automatic angle bracket `<>` pairing completion in Visual Studio Code?

社会主义新天地 提交于 2021-02-11 12:26:49
问题 I just couldn't find out how to activate automatic angle bracket <> pairing in Visual Studio Code like it exists for parentheses {} , round () or box [] bracket. Anyone has any clue, where in the setting I could configure this? 回答1: There is no setting in vscode that allows you to change what is considered to be a bracket, like adding <> . There is an issue Autoclosing pairs should be configurable that discusses this and you may wish to upvote it. In that issue, it is mentioned that you could

VSCode not able to recognize the code (Flutter/Dart)

可紊 提交于 2021-02-11 12:22:21
问题 Till yesterday, VSCode was running fine, but after dart updated itself, VSCode has stopped recognizing my code as a language. When I type CTRL+F5, it pops up asking to select a compiler. The code runs fine, but it is not able to recognize it. Side note, it works in Android Studio. Updating the pubspec.yaml file just removes errors but the code is still not recognized. Popup: https://i.stack.imgur.com/c2WZR.png No syntax highlighting/nothing: https://i.stack.imgur.com/EmtiU.png P.S: It

Pylint Error with Python Turtle even though code executes properly

北战南征 提交于 2021-02-11 12:09:50
问题 import turtle class Polygon: def __init__(self,sides,name,size=100,color='black',line_thickness=3): self.sides=sides self.name=name self.size=size self.color=color self.line_thickness=line_thickness self.interior_angles=(self.sides-2)*180 self.angle=self.interior_angles/self.sides def draw(self): turtle.color(self.color) turtle.pensize(self.line_thickness) for i in range(self.sides): turtle.forward(self.size) turtle.right(180-self.angle) turtle.done() square=Polygon(4,'Square') square.draw()

How can you hide Java compiler path VSCode?

人盡茶涼 提交于 2021-02-11 08:50:01
问题 When I run a java program in vscode's integrated terminal, the full java path displays as a large box of text. Is there any way to get ride of this? /Library/Java/JavaVirtualMachines/jdk-13.0.1.jdk/Contents/Home/bin/java --enable-preview -Dfile.encoding=UTF-8 -cp "/Users/myusername/Library/Application Support/Code/User/workspaceStorage/alotofnumbers/redhat.java/jdt_ws/foldername/bin" 回答1: you could let it output in debug console instead of terminal channel as a workaround, add "console":

How to store data for each “user” - VSCode Extention

▼魔方 西西 提交于 2021-02-11 04:31:39
问题 I'm making a extension for VSCode. What method is generally to store data? For example, settings for each user, not for each workspace. I knew the way to store data in user's workspace. But it is troublesome to set values for each workspace again and again. 回答1: I've found a answer by myself. ExtensionContext.globalState https://code.visualstudio.com/api/extension-capabilities/common-capabilities Code Sample(read and write) function method_registerCommand(context){ var store = context