Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Browsing all 97327 articles
Browse latest View live

Indent/format code in Visual Studio code on MAC

i'm trying to indent my code in visual studio code. I searched and i found that ctrl + F + K should be work, but it doesn't. I tried cmd + k + f too, but it still not working. I hope you can help me!

View Article


How to indent/format a selection of code in VSCode with ctrl+shift+f

I want to indent a specific section of code in VSCodeI read How do you format code in Visual Studio Code (VSCode) post that gives shortcuts to indent the whole code but it doesn't work when selecting a...

View Article


VSCode nested snippets (or include a snippet inside another snippet)

I'm wondering if I can refer to another snippet within a snippet in VSCode user defined snippet.Say I have"Test1": { "prefix": "snippet_test1", "body": "something" } and is there a way to insert...

View Article

Image may be NSFW.
Clik here to view.

cl.exe mylibrary.dll not found, on vs-code?

I want to practice some computer graphics using opengl. Though, I have visual studio 19 installed, I want to write my code on visual studio code, to learn how the things are done manually.This is how I...

View Article

Image may be NSFW.
Clik here to view.

How to change settings input background color in vscode?

I want to change the background color of input in settings. I tried doing "input.background": "#1D1F22". But it's not working. Search bar in settings does reflect the new background. However, the any...

View Article


How to NOT create obj files when using cl.exe?

I am using cl.exe in Visual Studio Code. I run this command to compile my program:cl /EHsc program1.cpp It creates two files:program1.obj program1.exe I do not have any use for the .obj file, so how to...

View Article

Image may be NSFW.
Clik here to view.

How can I invoke the breakpoint correctly in VSCode while attach the process?

I created a .net core project with Visual Studio on a local computer.Now I want to debug it on the server computer(Windows Server 2012R2).I have to do it like this for the project has used a...

View Article

How do I duplicate a line or selection within Visual Studio Code?

Using Microsoft's Visual Studio Code, how do I duplicate a line of code and then move it up and down? (Similar to Sublime's cmd+shift+d behaviour)It's a feature that I use constantly, and am struggling...

View Article


Image may be NSFW.
Clik here to view.

Add Custom python.pythonPath to List of Interpreters

I want to use a custom python interpreter, which you can do by adding to python.pythonPath, as seen in the image below. However, I thought that there would be an option so that I could add an...

View Article


how to fix ImportError: DLL load failed while importing win32api: The...

When i run the following code the error is generate.I had try by install same architecture X64-bit as my operating system and also install X32-bit . But it again gives me a errorimport pyttsx3 engine =...

View Article

Visual Studio Code on macOS + Qt + Intellisense

Visual Studio Code gets the following error:cannot open source file "QtWidgets/qtwidgetsglobal.h" (dependency of "QApplication")C/C++(1696) I have a CMake project which compiled and built successfully,...

View Article

Why doesn’t VSCode autocomplete?

Once VSCode autocompletes fine, once it does not complete my text.I would like VSCode to autocomplete for example if I write an Array, I would like to show the available methods for arrays...

View Article

Image may be NSFW.
Clik here to view.

Problem in laravel vscode use wampserver and not xampp

when i install vscode by default php use WampServer and not xampp, in xampp php version is 7.3 i want to use this version and not php 5 How i can change setting of vscode from php in wampserver to php...

View Article


How can I set double-finger horizontal scrolling via touchpad as default in...

That is as a feature automatically enabled, but after a few minutes of horizontal scrolling I somehow get switched so that my horizontal scroll starts going through a single line at the time. How can I...

View Article

VSCode running Python 2 instead of 3

I am using Python with VSCode, and if I use Cmd+Shift+P and type Run Code, it runs the code with Python2 even though I have specified it to use Python3. I have read this tutorial: How to force VSCode...

View Article


Turn off error for console.log on my eslint

I'm trying to turn off lint warning for my eslint at VS code.My code is contains. console.log('blabla..'); eslint said as below. error Unexpected console statement no-console Even though already add...

View Article

Visual Studio Code: different color themes for different projects

I have 2 Visual Studio Code instances with two different projects. Is there a way to make VS Code instances' themes different from each other depending on the project?

View Article


Where is the option to allow old RegEx logic? [duplicate]

This question already has an answer here:Reference - What does this regex mean? 1 answerI am not good with RegEx but i was doing good with semi-complex expression combinations while using...

View Article

How to create a workspace

How do we create a workspace in Visual Studio Code? I see File menu command to open, add a folder to and save a workspace but nothing to create one.The questions How to create workspace in VS code and...

View Article

Trying to use emmet with a react app in vs code

I am using Visual Studio Code and creating a React App. I understand that Vsc comes with Emmet but it does not work with my React App. I have tried putting the following code in...

View Article
Browsing all 97327 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>