visual-studio-code

Relative Path Error When Migrating From Eclipse (PyDev) into VS Code

末鹿安然 提交于 2021-02-11 18:23:26
问题 I am completely new to the VS Code - find it very easy to use compared with Eclipse so I am trying to migrate our existing projects from Eclipse into VS Code. By selecting the folder as the eclipse file, the interpolator seems to be selected automatically. But I do see the error as below. Exception has occurred: FileNotFoundError [Errno 2] No such file or directory: 'C:\\Development\\log\\Hedger.log' File "C:\Development\Optimizer\src\globals\config.py", line 17, in <module> hdlr = logging

Relative Path Error When Migrating From Eclipse (PyDev) into VS Code

廉价感情. 提交于 2021-02-11 18:23:13
问题 I am completely new to the VS Code - find it very easy to use compared with Eclipse so I am trying to migrate our existing projects from Eclipse into VS Code. By selecting the folder as the eclipse file, the interpolator seems to be selected automatically. But I do see the error as below. Exception has occurred: FileNotFoundError [Errno 2] No such file or directory: 'C:\\Development\\log\\Hedger.log' File "C:\Development\Optimizer\src\globals\config.py", line 17, in <module> hdlr = logging

KARATE, VScode : “Run Karate Test” codelens not displayed

泄露秘密 提交于 2021-02-11 17:44:53
问题 Visual Studio Code 1.43.0 Karate Standalone JAR 0.9.5.RC5 In the VScode editor, in a Karate .feature file opened, the codelens "Run Karate Test", as shown in the screenshot, isn't displayed anymore. So, it is impossible to debug a specific scenario. Any idea about this? Thanks a lot. In a correct configuration, it looks like this : 回答1: We are still unable to reproduce this issue. Referencing some searches it appears this may be due to a broader issue such as other plugins Eg. Intellisense.

Screen is broken when another window is displayed on top of vscode

风格不统一 提交于 2021-02-11 17:43:27
问题 While using Visual Studio Code, the screen is broken as shown in the following gif. It is not visible in the gif file, but is being dragged with the another window open. The same thing did not happen in other programs (e.g., visual studio community, source tree, etc.). It also happened on other monitors connected to internal graphics cards. When scrolling in vscode, the same symptoms occur in the parts that are not scrolling (such as the left menu section). 回答1: Updating the graphics card

VSCode practically unusable with slow intellisense without using extensions

南楼画角 提交于 2021-02-11 17:17:34
问题 VSCode on my Macbook Pro is practically unusable due to the intellisense being ungodly slow. This includes: hovering to find typescript types, inferred and explicit types autocomplete variables/functions/etc autocomplete for using shortcuts error lines shown in editor For example, I will have an error show. Something like "variable not defined" or something simple. But then when I go to rewrite the code, it takes forever for VSCode to catch up. Sometimes I have to let it sit 40-50seconds

VSCode practically unusable with slow intellisense without using extensions

久未见 提交于 2021-02-11 17:15:38
问题 VSCode on my Macbook Pro is practically unusable due to the intellisense being ungodly slow. This includes: hovering to find typescript types, inferred and explicit types autocomplete variables/functions/etc autocomplete for using shortcuts error lines shown in editor For example, I will have an error show. Something like "variable not defined" or something simple. But then when I go to rewrite the code, it takes forever for VSCode to catch up. Sometimes I have to let it sit 40-50seconds

How to run PHP with vscode

点点圈 提交于 2021-02-11 17:00:43
问题 I'm trying to create a simple HTML form that redirects users to a thank you message displayed by the server, and written in PHP. However, nothing I do seems to work. I get a 405 every time I try to run the code. If I refresh the page it starts downloading. I'm using the live server extension and I have PHP installed. HTML file: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible

How to run PHP with vscode

此生再无相见时 提交于 2021-02-11 16:59:51
问题 I'm trying to create a simple HTML form that redirects users to a thank you message displayed by the server, and written in PHP. However, nothing I do seems to work. I get a 405 every time I try to run the code. If I refresh the page it starts downloading. I'm using the live server extension and I have PHP installed. HTML file: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible

Java formatting: Keep lines but fix indentation

筅森魡賤 提交于 2021-02-11 15:43:59
问题 I have the following code: DSPOTTGuaranteedUserReachForecastModel model = new DSPOTTGuaranteedUserReachForecastModel( mockCache, demand, mockTargetingDatabaseHelper, programType, region); The correct indentation should be two indents for each incomplete line. Ideally I would want to my text editor to format my code as such: DSPOTTGuaranteedUserReachForecastModel model = new DSPOTTGuaranteedUserReachForecastModel( mockCache, demand, mockTargetingDatabaseHelper, programType, region); However,

Visual Studio Code: Creating an Extension

泄露秘密 提交于 2021-02-11 15:22:55
问题 I am writing an extension for vs code and want to know if it's possible to add a tab to this bottom pane: 回答1: I doesn't look like the API supports adding a new tab to that panel, but you can create and write to a custom Output Channel, by using this: https://code.visualstudio.com/docs/extensionAPI/vscode-api#OutputChannel 来源: https://stackoverflow.com/questions/53564607/visual-studio-code-creating-an-extension