Category "visual-studio-code"

How to set intellisense for react testing library using typescript

I just downloaded Create-React-App which uses react testing library. I do not get intellisense when I use it's methods (Example : toBeInTheDocument) . How to se

Change default working directory for VS Code terminal

Is it possible to change the working directory for new integrated terminal windows in Visual Studio Code? I have opened the folder /path/to/project in Code, so

What is the command to open a file in specified ViewColumn in VS Codium?

How can I open a specific file in a specified split view with an built-in command in VS codium? Is that possible without writing an extension? I have a project,

Angular Material intellisense doesn't work in VSCode

I'm working on an Angular (v13) project and I installed Angular Material using this command ng add @angular/material I can see the package in the node_modules,

javascript debug terminal keeps opening using powershell instead of git bash

I put the default terminal "terminal.integrated.profiles.windows": { "GitBash": { "path": ["C:\\Program Files\\Git\\bin\\bash.exe"], "source": "

Typescript auto-complete not working in VSCode

I'm trying to make use of Puppeteer within a ts file which works fine except the VSCode Intellisense stops working a soon as I'm inside a .ts and not a .js file

Getting VS Code to detect React props properly when Redux state props are mixed in

There is a nice example in the React-Redux documentation on how to build a functional component that will receive both props from Redux and from its parent comp

LLDB prints `i8` as "signed char"

I'm using the LLDB extension for VSCode, and my variables typed as i8 are printed as characters. Both in the VSCode debugging panel, and when using print in the

Trying to get React Redux example in TypeScript to play well with VS Code

In the Redux documentation, there is an example that is not playing well with VS Code. I am talking about the example here: https://redux.js.org/usage/usage-wit

How to prevent VSCode from asking me to save unsaved files?

After I saved a file, VSCode would jump to other files I've edited and asked me to save them as well. I don't want that behaviour as it moves me out of context

How to prevent VSCode from asking me to save unsaved files?

After I saved a file, VSCode would jump to other files I've edited and asked me to save them as well. I don't want that behaviour as it moves me out of context

TypeScript error ts(2345) is incorrectly labeling the type of object in Vue v-for loop

I am using Vue single file components. Here is a small example showing my error: <script setup lang="ts"> interface IDesign { displacement_map_urls: {

Why can't I import requests in VS Code?

I want to use request module, but whenever I tried to import requests I got this message: import "requests" could not be resolved from source Pylance I already

Unable to save Jupyter notebook in VS Code

I have been trying to save my jupyter notebook in the '.ipynb' format but am unable to do so, in whatsover extension. I encounter the following error message Fa

How can I upload a file to a GitHub Codespaces environment?

I use GitHub Codespaces, but I don't know how to upload a single file to GitHub Codespaces without the assistance of, for example, github.

Is it possible to use the "code" command in SSH'ed terminal to open VS Code on local machine with SSH extension?

Something I love about VS Code is that when I am using a terminal in WSL, I can run code file.txt, and it will open that file with VS Code on my local using the

VSCode Remote Containers automatically copy file from host to docker container on save

I am finding many answers on how to develop inside a container in Visual Studio Code with the Remote Containers extension, but surprisingly none address my use

Vscode autocomplete dollar sign in LaTeX

How can I add autopairing between dollarsigns when writing in LaTeX? Program: VSCODE OS: Windows 10

Text style of Inlay Hints

I would like to learn how can I change the textStyle of inlay hints in VSCode. I made a search and I was only able to find how to change its color, but sadly I

Switch to INSERT mode with active selection from SELECTION mode (VSCode, Vim)

Is it somehow possible to select something in Vim's selection mode and then switch to input mode with the text still selected? When working with VSCode, you can