Questions tagged [vscode-settings]

3

votes
0

answer
43

Views

vscode markdown sparql syntax highlighting in fenced code blocks

I'm wondering what to do to get the syntax highlighting rdf spqrql query that I write in a Markdown fenced code blocks so far I noticed that in edit mode I can get a result specified 's' as a language , but: sadly, markdown preview seems to ignore it: no effect is obtained I do not know if the r...
Franco Rondini
0

votes
1

answer
38

Views

How to set breakpoints & command line arguments in VS code debugging mode?

Backgroud: I am using VS code. I am trying to run a python project. I am on Ubuntu 18, Python 3.6 anaconda installation. Issue: I set a breakpoint in another file which has a function that is being called in my main file and in the debugging mode, VS code doesn't stop at all on the breakpoint. How...
Rafael
2

votes
0

answer
15

Views

VSCode: How can I remove this git helper button bar?

I'm using VSCode (Version 1.28.2 (1.28.2)) for MacOS and I have this really annoying bar I can't seem to remove. Close Up of bar: Wider View: If Anyone has some insight on how to hide this, it'd be greatly appreciated!
davedeecoder
0

votes
0

answer
3

Views

Is there a way to show the faulty code line instead of the memory address when a runtime error occurs in VSCode?

See the Question in the title: Runtime error 201 at $0000000100001D42 $0000000100001D42 Is there a way to show the faulty code line instead of the memory address? Thanks for the Help
Frozenbirdfire
1

votes
2

answer
60

Views

vscode on mac is incorrectly highlighting text around text blocks

It is very annoying to see that background around code is lighter then the rest of the program. When the cursor moves the highlighting moves up and down to full window width. Can you please propose solution how to turn this highlighting off. Same problem is in output of task log, and in file explore...
Marcel Mandatory
1

votes
1

answer
71

Views

Pass currently focused file to a integrated terminal in VSCode

I'm trying to mimic functionality of Sublime Text where I can create a 'build system' that allows user to run some command in terminal followed by path to currently opened file. Example, I can make some basic script, hit cmd + b and see the output in integrated window (screenshot attached). Is there...
Paweł Grzybek
1

votes
1

answer
505

Views

Inserting code with a keybinding in Visual Studio Code

How can I insert code in Visual Studio Code for MacOS with key bindings? For example in Sublime I can insert a console.log like this: { 'keys': ['super+shift+l'], 'command': 'insert_snippet', 'args': { 'contents': 'console.log('test:' + varname);${0}' } }, If I press Cmd+Shift+L I get console.log...
PhiceDev
1

votes
1

answer
127

Views

Is error checking in VS Code exclusively tied to the file extension?

I've associated .es6 files with the JavaScript React language mode by adding this to my VS Code settings (%USERPROFILE%\AppData\Roaming\Code\User\settings.json): 'files.associations': { '*.es6': 'javascriptreact' } And when I have an .es6 file open in VS Code, the language mode is indeed 'JavaScript...
Daniel Pratt
1

votes
1

answer
684

Views

How to apply bookmarks with a mouse click event on VisualStudioCode?

I have Visual Studio Code(VSCode) 1.10.1 version installed on Windows 7. I am new to VSCode. At the moment, if I click on the left side of a file before the line numbers, a red dot appears which is the breakpoint. But, how to replace breakpoint with bookmark instead? It does work with ctrl+alt+k. Bu...
sw_embed
1

votes
1

answer
184

Views

How to reverse ALT + LEFT MOUSE and CTRL + LEFT MOUSE bindings?

In sublime text CTRL + LM adds a cursor and feels much more natural than ALT + LM, because I keep accidentally clicking the space bar and inserting a space. I also like the VSC CTRL + LM file path peek option, but I just want to reverse the two buttons. So inserts cursor should be: CTRL + LM And p...
Amir
1

votes
1

answer
894

Views

Custom Extension setting shows as unknown configuration

I created a custom VSCode extension which needs a configuration setting the user settings file of vscode. Why does the setting shows as unknown configuration? It works as expected.
Stefan Stranger
1

votes
1

answer
166

Views

How to configure VSCode to auto insert comment chars on multi line comments

Is there a way to configure VSCode so that I can write multi line comments. In Rust comments start with // or ///. If I write such a comment then it would be nice when I hit Enter that the editor auto insert /// in the beginning of the new line.
zzeroo
1

votes
1

answer
416

Views

VSCode: Multiple horizontal and vertical panels

Is it possible to have mixed vertical and horizontal tabs/panels in VSCode - it seems I only can have either horizontal or vertical and no more than 3 total.
DmitrySemenov
1

votes
1

answer
295

Views

Turn off light bulbs in VS Code

I have a strong dislike for the light bulbs in VS Code. Is it possible to turn them off, and if so how? I still want to be able to use Ctrl+. for refactoring.
BenMaGoo
1

votes
1

answer
58

Views

VSCode - Auto select non-word characters

How to enable auto select non-word characters in Visual Studio code? Here is the setting in atom. This would enable selection of variables like $foo or colours #fff with just a double click in Atom Editor. And by selection I mean from $ to o in $foo. At the moment when double clicked on $foo, VSCode...
Venkatesh SGS
1

votes
1

answer
817

Views

How to auto insert spaces between double brackets (double mustache) in VS Code

Currently when I add { to a .html file, VS Code will automatically close that bracket while leaving the cursor between the brackets, same with double curly brackets. Since I am working with Angular I would like to know if it is possible to have VS Code do this: If I add 2 open curly brackets then ad...
Tadija Bagarić
1

votes
1

answer
459

Views

How to associate a custom file extension with the MSBuild Tools in VSCode

Take any C# project file (*.csproj and rename it to *.build and then open it with VS Code. It will be recognized as XML. What I would like is to associate VsCode MSBuild Tools with that custom extension. I already tried provide a file association like 'files.associations': { '*.build':'csproj' }
Apostolis Bekiaris
1

votes
1

answer
194

Views

go not in vscode workspace settings user settings

I have installed Go Extension in VSCode, and in How to use this extension? section on Extension Web Page, it mentions many go settings like go.toolsGopath, go.gocodeAutoBuild, go.formatOnSave, But when I use Ctrl + , to Open the User Settings, I didn't see any Go settings, there's no Go Settings blo...
yu yang Jian
1

votes
1

answer
418

Views

Cannot set default terminal to PowerShell 6.0

I am trying to set the default terminal in vscode to PowerShell 6.0. However, after restarting vscode, the following message appears and a terminal is not started. ERROR e.executable.toLowerCase is not a function Here is the user settings override code I have tried using. NOTE: backslash path separ...
lit
1

votes
2

answer
1k

Views

Run a Django project from VSCODE

Is there a way to run a Django project from VSCODE editor? Currently I use the windows CMD to run my project. Every time when I hit the button 'run' on VSCODE it doesn't run the project. On pyCharm we can add 'runserver' to its script parameters configurations. Is there something like that on VSCODE...
Filipe
1

votes
1

answer
599

Views

VSCode Scrolling to next line on long lines of code

When I highlight a long line of code - if I barely move my mouse to the row above or below it will automatically go to the beginning of the line. Really annoying for simple highlight and change edits. At the moment, I only use my arrow keys as an alternative.. or I have to be very careful and not ge...
hinteractive02
0

votes
0

answer
4

Views

flake8 and vscode: disable linebreak after each argument in function call

Currently flake8 formats my code like this: def foo_bar_maybe_long_name( argument1, argument 2, another_argument, and_a_last_one, ): which IMO makes the code long and difficult to read. I would like somehting like this, which is pep8 compliant I think: def foo_bar_maybe_long_name( argument1, argumen...
P. Camilleri
1

votes
2

answer
85

Views

VS Code. How to open JSON settings with defaults

When I'm opening settings using Preferences: Open Settings (JSON) I'm getting screen like this: But in VSCode videos/tutorials I see people somehow have splitted window, with default settings on the left and user/workspace setting on the right: How I can enable it? =========================== EDIT...
MyTitle
0

votes
0

answer
3

Views

vscode doesn't hint when cursor in the bracket, how do i fix it?

For example, when I write Python in vscode: Write pri can prompt print(|) But at this time, there is no prompt when inputting in the print parenthesis. For example, print(le|) can't prompt len(). Be sure to press esc to restart the prompt What is the reason for this, can I change it?
毛雨慧
0

votes
0

answer
15

Views

VSCode setup for multiple frameworks

I am currently working on a legacy Symfony 2.8, At the same time, currently working on new projects using Laravel with Vue and other projects using Electron. How can I make VSCode have different settings preferably per project? I tried opening the preference (as json) but I cannot find it. Thank you...
rfpdl
1

votes
0

answer
17

Views

Checking my libraries .js code with my libraries corresponding .d.ts code

I'm working on a library written in JavaScript called MyLibrary. I'm also writing (and publishing) a corresponding type declaration file so TypeScript users can use my library in their TypeScript project. Here is my project structure: // myLibrary.js function abc (x, y, z) { let a = 1 return a + x +...
E.Arrowood
1

votes
2

answer
51

Views

VS Code terminal colors are screwy

I'm using the default theme. The terminal's colors are impossible to read, make no sense, and are inconsistent. I've tried switching themes but they're terrible in all the themes. Here's what it looks like in the default. Are you able to read my yellow input against the gray background? And why isn'...
Matt Thomas
0

votes
0

answer
13

Views

Junit and VSCode

I'm trying to get junit working in VS Code for my CSC142 class with the following code that was provided by the teacher. But I can't seem to get it working. I've installed junit 4.10 and set it as a permanent class path I've installed Java Test Runner and also tried doing everything through command...
Luke Kelly
1

votes
1

answer
2.7k

Views

Setting up VSCode with xdebug: pathMapping

I am trying to set up debugging in VSCode and have run into a bit of a challenge. I typed the path to the localSourceRoot but Intellisense is telling me that it is deprecated and I should use pathMapping instead. I am a newbie and don't know how to properly set that up. If someone could explain to m...
rocknriter
1

votes
1

answer
31

Views

VSCode - how can I add highlighting to the line with the cursor?

How can I add highlighting to the line with the cursor? Like this official tutorial screenshot - link. In my case, it looks like this - link
Skif
1

votes
1

answer
364

Views

python scripts debug in ROS with Visual Studio Code

In order to debug python scripts, I would like to run 'source path_to/setup.bash' before python debugger begins. How should I to do so ? Thank you!
Joey Chia
1

votes
1

answer
1.2k

Views

VS code how to create templates for file extensions

In my vue.js projects almost all the times I need this code snippet as a template. export default{ data(){ return{ } }, methods:{ }, created(){ } } My question is, Is their a way to tell VS code each and every time I create a file with the extension .vue please automatically add that snippet to the...
1

votes
1

answer
825

Views

Vs code auto indenting not working for python

I’m new to visual studio code, just switched from sublime text 3. I was writing a simple if statement and when I write else: like that, on ST3 it would move the else to under if but this doesn’t happen with vscode. I’ve tried everything and looked everywhere but doesn’t seem to work. Any ide...
hiha2828
1

votes
1

answer
333

Views

How do you delete lines with certain keywords in VScode

I have this regular expression to find certain keywords on a line: .*(word1|word2|word3).* In the find and replace feature of the latest VSCode it works ok and finds the words but it just blanks the lines leaving big gaps in-between. I would like to delete the entire line including linefeed. The fi...
PapaLazarou
1

votes
2

answer
530

Views

Toggle Auto Format On Save with Prettier in VSCode

99% of the time I want VSCode to auto format my files on save with Prettier. For that 1% of the time is there a way to toggle this to off in a way that's quicker than going into the settings and then manually switching it on and off? I've tried looking for any keyboard bindings but the only one I fo...
avatarhzh
1

votes
1

answer
261

Views

VSCode: How do I KEEP blank lines (in scss files or others)?

VSCode deletes empty lines by default in certain cases, but what if I want to preserve/keep blank/empty lines in a document? For example, in my .scss file, I want to keep the blank lines that I made in between nested styles within a parent between properties and children, but 'Format Document' keeps...
Steven Choi
1

votes
1

answer
75

Views

In VSCode how do you select a whole word with - in it?

IE: say I double click 'LAYOUT:MENU-TRADE': I want to select the entire constant. Or at least the entire MENU-TRADE part. In atom I can accomplish this by removing - as an ignored character. How is this accomplished in VSCode?
Leon Gaban
1

votes
1

answer
377

Views

VSCode Black Menu Bar

So in the last update's Release Notes (1.27.2) I saw this screenshot: But my menubar looks as ugly as usual. How can I enable the black menubar (which I assume is implemented as part of the HTML page rather than a native Windows menubar)?
Niklas R
1

votes
1

answer
148

Views

Customize color of text inside `backquotes` in VSCode

The only options I can find that deal with custom coloring inside Visual Studio Code are those: 'editor.tokenColorCustomizations': { '[Atom One Dark]': { 'comments': '#FF0000' // only 6 color-customizable }, 'workbench.colorCustomizations': { 'statusBar.background': '#666666', 'panel.background': '#...
Nik-Lz
1

votes
1

answer
51

Views

VSCode: Is there a way to switch between different settings fast?

I recently started using Visual Studio Code. I was wondering if there is a way to switch between settings using a hotkey. For example let's say it's dark outside and I want to switch my theme. (I know there are day/night switcher extensions, but the ones I could find where only able to switch styles...
J. Hesters

View additional questions