visual-studio-code

Import “Path.to.own.script” could not be resolved Pylance (reportMissingImports) in VS Code using python 3.9x on Lubuntu 20.04

谁说我不能喝 提交于 2021-01-21 09:25:29
问题 It is a similar situation I'd encountered several months ago using pylint prior to pylance: My python 3.9x - script (using VS Code on Lubuntu 20.04 LTS ) starts with the following import of custom "tools": import sys sys.path.append( '/home/andylu/Dokumente/Allgemeines_material/Sonstiges/Programming/Python/Scripts/' ) import General.Misc.general_tools as tools Now, Pylance states Import "General.Misc.general_tools" could not be resolvedPylance (reportMissingImports) even though when executing

How to configure VSCode for GTK3 for intellisense / build / debug and g++

橙三吉。 提交于 2021-01-21 09:19:06
问题 I'm using g++ GTK3 VSCode How do I get the following to work: Intellisense / code completion for gtk Buiding inside VSCode Debugging with VSCode Problem: VSCode does not find includes - especially #include <gtk/gtk.h> is red in source. 回答1: The important thing to note is, that you need to tell VSCode the include paths and compiler flags to work properly. First step: Open the target folder in VSCode. Now you should have a new hidden folder .vscode in there. Open it. You want to apply the

VSCode: Turn auto scrolling permanently ON

社会主义新天地 提交于 2021-01-21 08:46:30
问题 In Visual Studio Code, is there any way to force the auto-scrolling option of the Output panel permanently enabled? At the moment I have to click on the lock button every time I build my project to disable the scroll lock or better to say enable the auto-scrolling feature and this is so annoying. I took a look at the settings but couldn't find any relevant parameter there. Any ideas? 回答1: An option to turn off the smart scroll feature was included in one of the recent updates (probably in the

VSCode: Turn auto scrolling permanently ON

泄露秘密 提交于 2021-01-21 08:45:47
问题 In Visual Studio Code, is there any way to force the auto-scrolling option of the Output panel permanently enabled? At the moment I have to click on the lock button every time I build my project to disable the scroll lock or better to say enable the auto-scrolling feature and this is so annoying. I took a look at the settings but couldn't find any relevant parameter there. Any ideas? 回答1: An option to turn off the smart scroll feature was included in one of the recent updates (probably in the

VS Code: enable javascript intellisense in typescript project

不想你离开。 提交于 2021-01-21 06:53:31
问题 Is there a way to enable intellisense for Javascript files in a Typescript project? If I import a function from a javascript package like this: import foo from "js-package" and I'm in index.js, I see the intellisense picking up JsDoc comments and listing the parameters taken by the function; if I'm in a .ts file however, I don't get any of this. How do I enable Js intellisense in .ts files, using VS Code? EDIT: This is what happens: Ironic, isn't it? 回答1: You do not need any plugins. Just

VS Code: enable javascript intellisense in typescript project

房东的猫 提交于 2021-01-21 06:53:00
问题 Is there a way to enable intellisense for Javascript files in a Typescript project? If I import a function from a javascript package like this: import foo from "js-package" and I'm in index.js, I see the intellisense picking up JsDoc comments and listing the parameters taken by the function; if I'm in a .ts file however, I don't get any of this. How do I enable Js intellisense in .ts files, using VS Code? EDIT: This is what happens: Ironic, isn't it? 回答1: You do not need any plugins. Just

vscode package.json String does not match the pattern

只谈情不闲聊 提交于 2021-01-21 06:34:41
问题 I am trying out VSCode on an existing project that uses npm and has a package.json file with a corresponding "name:" key that reads "SpecPro-File-Management-UI". VSCode is objecting to this line with "String does not match the pattern ...", apparently because of the upper-case characters in the name. This problem is described in a VSCode issue which is closed. Which leaves me with advice to setup a custom schema for my package.json file. This is pretty unfriendly, and a barrier to adopting

vscode package.json String does not match the pattern

一笑奈何 提交于 2021-01-21 06:34:24
问题 I am trying out VSCode on an existing project that uses npm and has a package.json file with a corresponding "name:" key that reads "SpecPro-File-Management-UI". VSCode is objecting to this line with "String does not match the pattern ...", apparently because of the upper-case characters in the name. This problem is described in a VSCode issue which is closed. Which leaves me with advice to setup a custom schema for my package.json file. This is pretty unfriendly, and a barrier to adopting

VSCode conda activate base giving CommandNotFoundError

帅比萌擦擦* 提交于 2021-01-21 04:38:45
问题 I have Anaconda and Visual Studio Code installed on my computer. My default terminal for VS Code is Git Bash. When I open a new terminal in VSCode, it immediately runs the following commands: C:/Users/ethan/AppData/Local/Continuum/anaconda3/Scripts/activate conda activate base The second of these commands gives the following error: CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. If using 'conda activate' from a batch script, change your invocation to

enabling pylint_django plugin in vscode, pylint stop working

ぃ、小莉子 提交于 2021-01-20 23:40:25
问题 That's my user settings in vscode { "python.pythonPath": "/Users/cristiano/miniconda3/envs/django-rest-2/bin/python", "python.linting.pylintEnabled": true, "python.linting.enabled": true, "python.linting.pylintArgs": [ "--load-plugins", "pylint_django" ], } I installed the plugin via conda, same as the pylint pylint 2.1.1 py36_0 pylint-django 0.11.1 py_1 conda-forge pylint-plugin-utils 0.4 py_0 conda-forge If i commented out the "python.linting.pylintArgs" section, pylint works with no