61,264 questions
1
vote
1
answer
8k
views
Import could not be resolved Pylance(reportMissingImports)
I'm trying to import a bunch of flask related things. However I get the following error on almost all imports "Import could not be resolved Pylance(reportMissingImports)":
The imports are ...
10
votes
2
answers
15k
views
Set up Neovim integration in VS code
Currently a (neo)vim user, I read that VS Code supports neovim backend integration, but after searching I cannot find how to set it up.
How to set up neovim integration in VS Code?
I use both linux ...
15
votes
0
answers
4k
views
View number of added/deleted lines from VSCode GUI
I am aware that git diff --stat can be used to view the number of added and deleted lines between a commit and an unstaged change, like so:
src/core.cpp | 31 +++++++++++++++++++++++++------
1 file ...
Advice
0
votes
0
replies
26
views
What do the badges mean in VSCode's source control graph display?
Last year, VSCode added badges to the right side of its source code graph view. See the lavender cloud badge here:
Another badge looks like a branch:
The VSCode documentation talks about the ability ...
2
votes
1
answer
606
views
How to fix "permission denied" when typing "code ." in wsl?
Typing
code .
in the WSL terminal, Windows-Ubuntu subsystem returns:
/c/Users/cj/.vscode/extensions/ms-vscode-remote.remote-wsl-0.64.2/scripts/wslCode.sh: 63: /home/cj/.vscode-server/bin/...
-4
votes
0
answers
24
views
Is the VSCode WSL extension open source?
Extension: WSL
I have a use case that requires modifying the WSL VSCode extension. The extension page takes you to a GH repo for vscode-remote-release, but the extension code isn't in there. I've look ...
-2
votes
0
answers
31
views
What do these VSCode commands mean: “Restart Extension Host”, “Debug Extension Host in DevTools”, and “Debug Extension Host in New Window”?
I found these three commands in Visual Studio Code:
Developer: Restart Extension Host
Developer: Debug Extension Host In Dev Tools
Developer: Debug Extension Host In New Window
From their names, it ...
-1
votes
0
answers
13
views
Set up server launch configurations in vscode
I am trying to move from eclipse to vscode.
I want to set up various Tomcat server configurations so that I can run my web app in different environments.
I have installed Tomcat to c:\servers\tomcat. ...
-1
votes
0
answers
56
views
VS Code fails to run .NET, even if I installed it
When I open a workspace in VS Code, I get this error message notification on the bottom right corner :
Failed to run .NET runtime. You may be missing key Linux libraries. Install them now?
Source: ....
2
votes
2
answers
10k
views
VS Code + CMake : cmake.build not found
I have CMake working perfectly fine with Visual Studio 2015. I wanted to try VS Code with C++ and CMake extensions, but when I try to call the build command (configured to F7 by default with the CMake ...
0
votes
1
answer
55
views
Using LibreOffice portable to convert Excel to PDF in an ASP.NET Core Web API (IIS and IIS Express for development)
I had used LibreOffice portable a while back to convert documents to PDF and I cannot for the life of me figure out how to do it again.
Every time I run this in IIS Express for development I am ...
0
votes
1
answer
42
views
VSCode shows Scalar OpenAPI schema 'discriminator' property as any but it has a type defined
Why is discriminator any here? It's supposed to be, and defined as, DiscriminatorObject.
import type { OpenAPIV3_1 } from '@scalar/openapi-types'
const schemas: Record<string, OpenAPIV3_1....
5
votes
3
answers
47k
views
vscode report that the active file is not a C or C++ source file while building a c file
The vscode report an error while building a c program. The error message is as below.
Cannot build and debug because the active file is not a C or C++ source file.
The terminal process failed to ...
-4
votes
1
answer
36
views
How do I set a font for VS code UI, if the fonts style in the metadata is "Medium" using Fonted? [closed]
The font I have is Cookie Monster by Des.
I have tried both Fonted and APC.
I also tried to set the code font, but it only allows me to do 'italic', 'bold', and 'underline', not Medium. (Medium is the ...
0
votes
1
answer
52
views
VSCode debug always sets cwd to test file's folder in Robot Framework project — ignores launch.json setting
Context
I'm working on a Robot Framework project using VSCode and the robotcode extension (robotcode-dbiel). In production, we have one git repo for the framework, and one git repo for any test ...
0
votes
2
answers
59
views
Run Formatter (Black in Vscode) Path with whitespace
I have my files in a folder with a whitespace. /Volumes/USB SSD/....
If I run VScode Formatter (Black, autoflake) I get this Error:
Failed to run autoflake. Error: Stderr: /bin/sh: /Volumes/USB: No ...
2
votes
3
answers
8k
views
Visual studio code Go to implementation not working ( ctr + F12) not working
VS code cannot route to the implementation of an interface. Alt+F12 is not working too. Is there anyway to fix this problem? Visual Studio code version 1.19.3.
0
votes
3
answers
2k
views
Adding TailwindCSS association to Vue/Svelte/Astro file to disable "css(unknownAtRules): Unknown at rule @apply"
I want to associate TailwindCSS syntax interpretation with .vue (or Svelter / Astro) files so that the VSCode doesn't show errors for TailwindCSS directives in the <style> section, which would ...
16
votes
11
answers
92k
views
Select Python interpreter does not work in VScode
I have installed the first Python interpreter in my Windows PC and the path of python.exe is
C:\Users\myname\AppData\Local\Programs\Python\Python38-32\python.exe
It worked well originally (running, ...
0
votes
1
answer
41
views
Can't connect a local ASP.NET Core API to my Angular v20 Frontend
I've been fighting this problem for the last 3 weeks. I don't know if I'm also doing something wrong at the moment of connecting the API to the Front end not being able to at least print the JSON ...
-1
votes
3
answers
260
views
Can I integrate or import code from Visual Studio Code to Visual Studio?
Is there any way I can use Visual Studio Code and somehow integrate it to Microsoft Visual Studio just to use for version control after I'm done?
I mainly code with HTML, CSS, and Javascript.
1
vote
0
answers
33
views
Vs Code doesn't Recognize Flutter projet
I have been working on my project in vs code, when I feel tired I closed Vscode window and shut down my computer. Then when I come back to continue with the project, unfortunately VS Code does no ...
8
votes
3
answers
93k
views
Error with vscode-cpptools: "cl.exe build and debug is only usable when VS Code is run from the Developer Command Prompt for VS."
I am using a Visual Studio toolchain with the vscode-cpptools extension for VS Code and getting the following error:
cl.exe build and debug is only usable when VS Code is run from the Developer ...
0
votes
0
answers
58
views
.Flutter suddenly doesnt recognize Widget as a type
Flutter doesn't recognize Widget as type now. Material.dart is imported everywhere but still it still doesn't recognize it..It suddenly happened while i was working on the project.Now other projects ...
3
votes
2
answers
4k
views
VSC Python complier not printing the whole list
I use Visual Studio Code for any coding and recently I noticed a strange thing. Whenever I try to print a really long list, the list is not printed completely, it is cut off.
primes=[]
for i in range(...