Category "visual-studio-code"

Where are Visual Studio Code log files?

My VS Code frequently shows an error, something like "Error: cannot read property 'name' of undefined". The 'ESLint' tag in the status bar also shows up in red

Is there a way for VSCode file associations to work for partial naming?

I would like my material-icon-theme to recognize files as docker-compose-*.yml as docker files, however the command below does not work in my settings.json "mat

Visual Studio Code and jsconfig.json

I see in Visual Studio Code 0.5.0 that the /// <reference path="../typings/jquery/jquery.d.ts"/> can be removed from the .js files and added into an overr

VS Code Extension API - Replace a String in the document?

const textEditor = vscode.window.activeTextEditor; if (!textEditor) { return; // No open text editor } for(var i=

Set language for syntax highlighting in Visual Studio Code

Before the confusion begins, this question is about Code, the new lightweight Visual Studio Editor. You can get it from here: https://code.visualstudio.com/ I

How to prevent VS Code auto importing from 'react-native-web'?

When I type View, I expect VS Code to automatically import { View } from 'react-native'; but what is does is import { View } from 'react-native-web';. The probl

Open Link in VSCode Will Create a New Web Browser Under Same Icon as VSCode

I am using VScode version 1.45 with Firefox version 76.0.1 as a default browser (with Ubuntu 18.04.4 LTS). Whenever I tried to open a link in the VSCode, it wil

VS Code - find panel/view context name for shortcut 'when' expression

I'm trying to add some shortcuts to my VS Code instance and I want to scope them using the when expression to avoid conflicts. Alas, I'm struggling to find the

Keyboard Shortcut for opening command palette in VS Code?

On windows 10 running VS Code how do I open the command pallete with keyboard shortcuts? Under the view menu it says the shortcut is ctrl+shift+P but doing that

How to use window.crypto.subtle in vscode webview

In VSCode Webview, window.crypto.subtle not working. The possible reason is (from MDN): This feature is available only in secure contexts (HTTPS) And in VSC

How do I open multiple instances of Visual Studio Code?

Today Microsoft released the Visual Studio Code file/folder editor. The first limitation is it appears to be a single-instance application. Is there a way of

How do I jump to a closing bracket in Visual Studio Code?

In VSCode when I type a bracket, e.g '(', it automatically creates the ending bracket: ')'. Are there any shortcuts to jump to the closing bracket or parenthesi

VSCode Vim Settings not working for remaps with "

I have this in my settings.json for preventing vim from replacing my clipboard when I delete something: "vim.visualModeKeyBindingsNonRecursive": [ {

Visual Studio Code terminal doesn't activate Conda environment

I read this Stack Overflow post on a similar issue, but the suggestions there don't seem to be working. I installed Visual Studio Code on my Windows machine and

Visual Studio Code cannot detect installed git

Visual Studio Code reports "It look like git is not installed on your system." when I try to switch to the git view. I know I have git installed and used by oth

How do I open multiple instances of Visual Studio Code?

Today Microsoft released the Visual Studio Code file/folder editor. The first limitation is it appears to be a single-instance application. Is there a way of

Why can't VSCode open files from Explorer if it was open as administrator?

I set VSCode to open as administrator on the shortcut settings. This causes a weird behaviour in which VSCode can't open other files from Explorer just returni

How to turn off the prettier trailing comma in VS Code?

How to turn off the prettier trailing comma in VS Code? I go to settings. Select none for the prettier trailing comma. Restart VS Code. Select a piece of TypeS

VSCode + Clangd: type annotations become obtrusive - how to disable?

I'm using VSCode 1.65.0, the clangd extension, and clangd from latest LLVM (14.0). It seems to have introduced a feature where it displays type-hints whenever I

How to use java .class file in Visual Studio Code?

I'm currently studying a Java course, and one of the assignments requires me to use (import) a class inside a .class file. I'm currently using Visual Studio Co