Questions tagged [vscode-settings]

1

votes
1

answer
270

Views

Disable word based suggestion in Visual Studio Code

I want to disable word based suggestion, it's annoying and useless in my opinion. For example Brackets will offer suggestion for variables, methods and language and will not pollute the suggestion list with all similar words written in file. I just want code suggestion. I tried 'editor.wordBasedSug...
Daniel
1

votes
1

answer
1.8k

Views

Code formatting Visual Studio Code - Line Length

I've been working with Visual Studio Code for a while. Since yesterday the code formatting is not working as I expect but I haven't changed any configuration. This is the file without formatting When it gets formatted: These are the settings modified by me What can I do form improving this?
1

votes
0

answer
114

Views

Launch a development local server with live reload feature for static and dynamic pages in VS Code?

Many times i have asked related this quations but no one is answered properly.My Qa is how to Launch a development local server with live reload feature for static and dynamic pages in VS code using following the josn files not plugins? //this is sample json files// //Folder// //folder path like th...
saranchel n
1

votes
0

answer
1.9k

Views

Visual Studio Code Python import paths

Is it possible to automate or relocate a launch.json setting to the user settings so I do not have to edit the same line in each launch.json? I have many Python modules in a directory outside of the Python Path and currently am having to edit each launch.json file to add the following line: 'env':...
pyuser00
1

votes
1

answer
494

Views

debug express js application visual studio code:

I am trying to debug my express js application through visual studio code here is my launch.json { 'version': '0.2.0', 'configurations': [ { 'type': 'node', 'request': 'attach', 'name': 'Attach', 'port': 9229 } ], 'compounds': [] } And my application is running in port 3000 but when i run debugger...
iam batman
1

votes
1

answer
753

Views

Enable green squiggles for warnings in VS Code for C++

Hey I have intalled VS Code in my Linux machine. I am using it for my C++ project. I've installed the recommended C++ Intellisense plugin but VS code isn't showing green squiggles for any warning e.g decleration of an unused variable. Any solution?
Hashir Sarwar
1

votes
1

answer
226

Views

Launching python Bokeh application passing options to python

I'm wanting to launch, and debug a Bokeh application using the vscode launcher. To do this, I think I need to equivalently run python with arguments like python -m bokeh serve . How can the launch.json file be written to accomplish this?
papahabla
1

votes
1

answer
168

Views

Can I modify fileLocation for problemMatcher?

I'm using Make over SSH to invoke gcc. I have mirrored source files in my local computer for editing. After editing, it is synchronized with SFTP. The problem is when the ProblemMatcher is set to $gcc, it returns full path of remote server, so it can't be matched with local files. Local File: ~/foo...
CJ Lee
1

votes
0

answer
212

Views

vs code 1.20 - intellisense not working

I'm new to VS Code and coding in general. Please bear with me. I've been using Monodevelop for Unity C# coding since the start. I've switched over to VS Code, which I love. It's faster to load up and more 'fun' to use. I was running VS Code 1.19.3 recently and decided to upgrade to 1.20. But after u...
al Nin
1

votes
1

answer
195

Views

Visual Studio Code, map and scroll bar out of sync

Is there any way to make the code map and scroll bar line up? As it is, they both scroll at different speeds, are different sizes, and the highlights on the scroll bar don't like up with the map. I can't find anything in settings or any other info online. Image for reference. Thanks :)
terids
1

votes
0

answer
102

Views

Variable alignment in vscode

I'd like to set an alignment rule when declaring variables only using Prettier: const variable1 = 'new thing'; let v2 = 50; v2 += 1; I tried Align extension for vscode which didn't work at all. Are there any settings in vscode and or Prettier I could apply?
Alx
1

votes
0

answer
43

Views

Is there a vscode settings which specifies which tab to open when closing a tab?

After you've close a tab in vscode, the most recently viewed tab gets focus. I would like to change that behavior to instead focus the tab to the right of the closed tab. Is there a setting to change this?
Lars Nyström
1

votes
0

answer
715

Views

VSCode Python Extension Commands Not Found

I have installed VSCode and Python 3.6.4, and I was hoping to set up the Python extension for VSCode to enable linting, debugging, etc. Unfortunately, I'm not able to set up the extension correctly. The extension comes with a set of pre-loaded commands for the command palette. These include 'Python:...
bpiv400
1

votes
1

answer
126

Views

VS code annoying pop up

I am using VS code to do my development. Can anyone help me to get rid of this annoying popup. I get the following popup. This info pop up get triggered every time when i open the VS code editor, Even if i click Don't show again i am getting this pop up again everytime when i reopen the VS code. Th...
skid
1

votes
0

answer
226

Views

Debugging in VSCode with XDebug prevents website from loading when adding breakpoints

When running XDebug w/ VSCode and setting a breakpoint the site hangs at a certain point after debugging all the way through. Additionally, if I put a breakpoint on a page that isn't even hit it will still fail. If I do not set a breakpoint everything is fine. Below is my configs: XDebug configurati...
Blake Rivell
1

votes
0

answer
874

Views

VScode lags on powerful PC

VSCode Version: 1.20.1 OS Version: Windows 10 Home 64-bit It has occured since a first-time clean installation. Every action (Input, selection, scrolling) has a small but very noticeable amount of lag (approx. 0.5s lag) every 10 or so seconds. This occurs on newly created empty files as well. CPU us...
OwenLearnsToCode
1

votes
0

answer
175

Views

Visual Studio Code Shortcut Run Command in Terminal

How do I have to modify this shortcut setting from VS Code keybindings.json, that it runs a command in the current terminal? This is what I have: [ { 'key': 'ctrl+shift+r', 'command': 'terminal.integrated', 'args' : 'ionic serve' } ]
user998163
1

votes
0

answer
457

Views

.php files doesn't work in Visual Studio Code

I think I broke mi VS Code trying to join php and html syntax when I have a php file with html and php code. The problem is that VS Code doesn't recognize .php files. The Select Language Mode shows as a 'Plain Text' and when I try to configure file association for '.php' doesn't appear. I try a sol...
Eriksen
1

votes
0

answer
77

Views

how to set default node read location for extension in vs-code?

Pre-problem I install npm and node using nvm, so that make my npm and node location in directory npm /home/putrapc/.nvm/versions/node/v8.9.4/bin/npm node /home/putrapc/.nvm/versions/node/v8.9.4/bin/node all i install in stable version The problem I start using vs-code and there is always error noti...
mandaputtra
1

votes
0

answer
41

Views

How can I change underline color for jshint in vscode for warnings from red to yellow?

I use vscode as a text-editor for frontend and backend development. For linting purposes I use jshint 'https://marketplace.visualstudio.com/items?itemName=dbaeumer.jshint'. The linter shows warnings with red colored underline, I would like to change that red color to yellow for warnings, is it possi...
codemilan
1

votes
1

answer
29

Views

How can I force a toggle command to always off?

I want a command that can hide the problems. Is there any way that I use workbench.actions.view.problems and make it not work as a toggle but as a switch?
HappyFace
0

votes
0

answer
3

Views

command line arguments to start a debugging session for any npm module in vscode

I need to debug a cli program which is installed via npm. I am using nvm and the cli code is downloaded and available in: /Users/Chetan/.nvm/versions/node/v10.4.0/bin/asar This is a symbolic link and gets added in PATH. Code for the same can be found in /Users/Chetan/.nvm/versions/node/v10.4.0/lib/n...
Chetan Sachdev
1

votes
1

answer
46

Views

How to temporarily change a setting in VSCode

When I am editing a standalone Python file in VSCode (not part of a workspace) I will often need to alter the value of python.pythonPath to reflect a specific virtualenv I am using to run that code. As the setting is just for the one file, I don't want to change my persistent global settings, and I...
Paul Moore
1

votes
1

answer
110

Views

VS Code: install extensions system wide via CLI as root

I want to install VS Code + some extensions (Java to be exact) on the PCs (CentOS) in our university lab. I installed the editor itself according to the official documentation, but I'm running into problems when I want to install extensions. I'm logging into the systems as root via ssh. Running sudo...
pschiffmann
1

votes
0

answer
385

Views

How to store and access project settings in VS Code?

In my VS Code project I need to be able to reference (substitude) some common project constants from within launch.json and tasks.json. My current solution is to put the variables in the .vscode/settings.json like this: { 'MYVAR': 'Foo' } and then reference them via ${config:MYVAR} from within e.g....
B12Toaster
1

votes
1

answer
259

Views

Change positioning of {} with auto-format in VS Code

When I auto-format my code in VS Code it formats to: void funtion() { } How can I change it to auto-format to this: void foo() { } Thanks!
Will Taylor
1

votes
0

answer
85

Views

Emmet abbreviation setting for top option

When typing a style property name, the first option is almost always just the text I've typed already. I can't find the setting to turn that off. (if there is one?) In my screenshot, it should list font-size as the first option. My editor scope is a vuejs single file component with stylus as the lan...
doman412
1

votes
0

answer
168

Views

Integrated terminal: update environment variable

This is my first day using vscode with beego. I used IntelliJ otherwise, which has a setting to specify custom paths for GOPATH. Vscode does not seem to have this option of allowing multiple GOPATHs, and I thought I could try to append GOPATH variable for all integrated terminal sessions. I've adde...
user1619524
1

votes
1

answer
278

Views

Visual Studio Code - Exclude NPM Scripts in Explorer

In Visual Studio Code 1.23 you can now run npm scripts from the Explorer window with the setting 'npm.enableScriptExplorer': true. I know you can exclude whole package.json files with the 'npm.exclude' setting, but is it possible to exlude just specific scripts from a package.json file? Or at least...
Bradley Singer
1

votes
0

answer
74

Views

How to set a specific width of sidebar

VS Code remember the last size of the sidebar. When I'm working on project 'A', I close it, then open project 'B', resize the sidebar, close project 'B' and go back to project 'A', I get in it the size of the sidebar from the 'B' project. I expect to save in workspace settings a width of the sidebar...
Adrian Bienias
1

votes
0

answer
91

Views

vsCode and cssComb

Have used Brackets, but had some problems. Now trying to get into vsCode. I am a bit confused by the instructions available for setting up and using cssComb within vsCode. Tried to use it from F1 but it gave me the error : 'command 'csscomb.execute' not found' Where do I set up the Configuration fi...
Bob Sharp
1

votes
1

answer
31

Views

is possible to link microsoft account with extensions?

every time i download visual studio code i have to re download all my extensions, there is some way for save config and extensions on hotmail account?
user9824971
1

votes
1

answer
80

Views

Auto wordWrap to the window VSC

I would like to auto word wrap all files to the window. In sublime this is simple with auto however, in VSC I have three options: editor.wordWrap editor.wordWrapColumn editor.wrappingIndent My issue is that no matter what settings I use I am unable to wrap the text to the window. There is about a 3...
hearsay
1

votes
0

answer
50

Views

Matching backticks/accute accents for ES6 template literals should appear immediately in VS Code

When I enter an apostrophe / single quote in VS Code, VS Code will automatically add a second one and put the cursor in between of the two. I want the same behaviour when I enter the acute accent `. By default, it will not show anything at first in order to allow creating special characters such as...
Adrian
1

votes
1

answer
50

Views

How do I get my VSCode Extension's configurationDefaults to work on any file type and not on a per-language basis?

I am trying to add a contributes.defaultConfiguration in the package.json that will work on all file types/languages. so far all I can find on the Visual Studio Code Documentation for Contribution Points works on a per-language basis, an example from the site can be seen below: 'contributes': { 'con...
Nabeel Valley
1

votes
1

answer
1k

Views

git not recognised in visual studio code

The issue is Vs code does not recognise the as they say 'out of the box git' in their editor.. So I have installed git 5 times, re installed vs code 5 times, restarted the computer every time plus checked all the environment variables and have been googling the problem for 2 days.. Nothing is solv...
Tom Curphey
1

votes
1

answer
224

Views

VSCode “Open Containing Folder” shortcut broke on Linux Mint

I am trying to use the 'Open Containing Folder' keyboard shortcut for VSCode. I am running VSCode 1.23.1, on Linux Mint 18.3. I have confirmed the command works correctly when I use the mouse to initiate from the context menu. But when I use the Alt+Ctrl+R hotkey, it fails to work. So either VSCode...
ScottF
1

votes
1

answer
347

Views

How to hide distractions in VSCode's Zen mode?

There is the picture with current view of Zen mode. Some parts of this picture are distracting me. Minimap Scrollbar Strange line on the left side (resizing hook) Is it possible to hide those things only for Zen mode? I know, minimap can be hidden by using settings/hotkeys, but it hides minimap glo...
Ky6uk
1

votes
1

answer
121

Views

How can I repeat last vim motion in vscode?

How can I repeat last vim motion in VScode ? Just like what repmo.vim does for vim
Willy Sun
1

votes
0

answer
39

Views

vscode check if settings.json is modified

In vscode, I created an extension that needs to modify the user settings file (settings.json). The extension is written in typescript using node.js. If the settings have been modified but not saved, then this results in an error due to the modified file being different. How can I check if the settin...
Ho-Wan

View additional questions