61,286 questions
0
votes
1
answer
20
views
Visual Studio Code Python Language Server crashes with JavaScript out of memory
I have a large Python project I'd like to edit in Visual Studio Code.
However, the Python Language server keeps crashing with JavaScript out of memory errors, like one below.
How can I increase the ...
0
votes
1
answer
16
views
Python language features do not work with libraries installed in Poetry local virtual environment (.venv)
I have a Python Poetry project. Visual Studio Code features like auto-import and auto-complete do not work for the project dependency libraries. Pylance (the Python language server for Visual Studio ...
0
votes
0
answers
30
views
How to add a Bridging Header in Visual Studio Code (on Windows) for a swift project
I have installed Swift 6.1.2 on my Windows pc. I have no problem compiling my swift project but I want to add a Bridging Header to import some C code. I have seen a few posts and articles but I am ...
0
votes
0
answers
15
views
Add commonly used files (not in the current workspace) to Ctrl+P indexing
Is there an extension or functionality where I can type Ctrl+P bashrc and have my ~/.bashrc file appear, from a workspace my home directory is outside of?
Sufficient for my use is a manual list of ...
0
votes
1
answer
45
views
Lombok @RequiredArgsConstructor not working in VSCode — “restTemplate not initialized in default constructor”
I’m working on a Spring Boot project in VSCode, and I’m using Lombok for boilerplate code generation.
Here’s my class:
@Service
@RequiredArgsConstructor
public class CapLoginServiceImpl implements ...
0
votes
1
answer
57
views
Pylance in devcontainer is loading forever
I am trying to set up a devcontainer on my desktop, but functions like autocomplete or go to function don't work. When I hover variable or function it shows never-ending load information Loading ...
0
votes
0
answers
76
views
Want VS Code to stop on any exception in my code, but not in external libraries
In VS Code, running C#. I want it to stop on any exceptions in my own code, but not in libraries or in .NET itself or nuget packages. But I cannot get this to work, even with Copilot helping.
In my ...
1
vote
1
answer
35
views
How to undo a refactor that altered base types in frontend framework?
I'm using Svelte 5 and TypeScript in VS Code.
I'm running into an issue where the TS language server thinks that the style attribute is not valid for a <div>, which is obviously incorrect. I'm ...
2
votes
2
answers
138
views
How does Visual Studio Code compile Java code?
For example, there is a base class HelloWorld.java
package main;
public class HelloWorld {
public static void main(String[] args) {
}
}
When I first run the program with "...
-1
votes
1
answer
66
views
Visual Studio Code does not add asterisks on new comment line [closed]
My Visual Studio Code stopped adding new asterisks on comment lines out of the blue. I've run through all of my settings and I can't seem to find something related to that that I can turn on and off, ...
0
votes
0
answers
17
views
How to apply a configuration after using "Attach to running container"
"Dev Containers: Open Attached Container Configuration File" command will open a local file in /home/<user>/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/...
0
votes
0
answers
49
views
Speeding up "intellisense" indexing for VS Code
IntelliSense takes a long time to re-index large C projects every time the folder is opened in VS Code. Even with thousands of .c files, it doesn't cache previous results or skip unchanged files.
I’ve ...
0
votes
1
answer
30
views
How to execute a command sent to the IPython terminal in VSCode?
I'm using VSCode with a keybinding that sends a command to the terminal, where IPython is running (not Jupyter Notebook, just plain IPython in the terminal).
I want to select a line of code (e.g. ...
0
votes
0
answers
91
views
How to navigate from exception to the code that caused it in interactive Python window in VSCode
My understanding is that the "Interactive Window" is the supported/best practice way to do REPL in VSCode. So I click the "Run or Debug" menu from my Python file and select "...
0
votes
0
answers
108
views
How to automatically approve/continue GitHub Copilot terminal commands in VSCode?
I'm using GitHub Copilot in VSCode through the CHAT tab, it frequently suggests running terminal commands and asks for iteration permissions. However, each time it wants to execute a command or ...