Questions tagged [visual-studio-code]

1

votes
3

answer
126

Views

Change hover color for quick picker

Is it possible to change the color for quick picker selected option via settings?
jfmarquez
1

votes
1

answer
65

Views

Is there a way to get the extension's settings (defined in package.json) at runtime?

In a Visual Studio Code extension, is there a way to get the extension's settings (defined in package.json) at runtime? There are a few values (like displayName) that I'd like to get.
Jeff
1

votes
2

answer
75

Views

How to do a search for the selected text?

How do I search for the selected text in the current file without having to copy / ctrl-f / paste? For clarification: Ultraedit has this behaviour. When pressed F3 and there's no selected text it performs the last search, if there is a selected text then it searches for the selected text in the curr...
mauroformigoni
1

votes
2

answer
542

Views

Show line ends in vscode

I have a very simple question, how can i display the end of a very long line in vscode ? I did not succeed of displayng it Here is the screenshot that will be more explicit : At the end of the line we can see 3 dots there is more code after that, how can i display everything ? Thanks in advance to...
foufrix
1

votes
1

answer
213

Views

Visual Studio Code Debug Error with Delve Debugger

When debugging Golang on Mac machine using Visual Studio Code, or if you Upgraded your MacOS, you may see the following errors: debugserver or lldb-server not found: install XCode's command line tools or lldb-server or could not launch process: exec: 'lldb-server': executable file not found in $PAT...
Abdisamad Khalif
1

votes
1

answer
107

Views

“DEPRECATION: Upgrade ember-cli-inject-live-reload version to 1.10.0 or above” warning will not go away after upgrade

I am new to working on an Ember front-end site and just recently received a warning stating the following: DEPRECATION: Upgrade ember-cli-inject-live-reload version to 1.10.0 or above I went ahead and ran a npm audit fix and npm upgrade ember-cli-inject-live-reload. When I run npm show ember-cli-inj...
J Weezy
1

votes
1

answer
155

Views

How to prevent VS Code from adding space before self-closing JSX tag?

I have this issue for a while. We have ESlint and it forbids us to add space before self-closing JSX-tag, but when I format .jsx file within VS Code it inserts it. How may I disable it? There is screenshot with the problem: Thanks!
Nikita Shchypyplov
2

votes
0

answer
101

Views

javax.net.ssl.SSLHandshakeException when trying to clone GIT on MAC

When trying to clone a VSTS project repo to my Mac (via VS Code Terminal) I get the following certificate error git clone https://abc-masked.visualstudio.com/Test/_git/Test.UI Cloning into 'Test.UI'... Configuration::loadGitConfiguration Program::loadOperationArguments Configuration::tryGetEntry Con...
Naveen Velaga
1

votes
1

answer
35

Views

VSCode: Delete all occurences of xml tag pair including differing contents

I'm working in a kml (xml) file in VSCode. There are 267 instances of the tags with the same contents schema but different contents. I would like a fast way to delete all of the instances of including the contents instead of manually deleting each one. I'm not married to VSCode if Notepad++ or ano...
Odaat
1

votes
2

answer
56

Views

How to remove sidebar search from VSCode?

How do I remove this search feature? Its ruining all my keyboard shortcuts!
Chet
1

votes
1

answer
29

Views

pylint import error in vscode even though python executer successfully imports it

I am using vscode for coding my python code. I use pandas, numpy and requests library in my code. If I run the code, It works fine. But in VScode editor, in the problems section, always Its says the message as Unable to import 'numpy' (pylint import error) Unable to import 'pandas' (pylint import e...
Smith Dwayne
1

votes
1

answer
29

Views

Errors in the GIT bash in VSCode

I am learning GIT through tutorials and currently and integrated the GIT bash into VSCode. I noticed that when using accents in the comments of the commits, in the installed terminal of GIT there are no problems to show these comments (image - right side) but if strange characters appear when I want...
Diego Aaron
1

votes
2

answer
48

Views

VS Code can't find python 3 interpreter

I am installing Python 3.7.2 for the first time, and I'm using the VS Code python extension. When I run python -V I get Python 2.7.10 which is not correct! When I select the usr/local/bin/python3 interpreter in VS Code I get this error when running a script: bash: /Users/erik/Work/Python/usr/local/b...
Kokodoko
1

votes
0

answer
5

Views

Python code neither running proper nor showing errors in VS Code

I am using Vs code(Charm was not working smoother on my PC) for python development it stuck after debugging without showing errors or output. I searched in stack overflow for a matching solution weight = int(input('Enter weight: ')) unit = input('(K)kilograms or (P)pounds? ') if unit.upper == '...
Kaleem
0

votes
0

answer
10

Views

command 'dotnet new mvc' in Terminal but don't have mvc template

I Install .NET Core 2.2 on macOS Mojave , then type command 'dotnet new' in Terminal but don't have mvc template. I don't know why. enter image description here
1

votes
1

answer
68

Views

How to debug a React add-in

I'm trying to start developing an internal-use add i, but I'm having a lot of difficulties to even console.log things. I have asked a previous question here. I used the yo office command from the generator-office tool, with React and Excel as options. I was able to serve locally and sideload the add...
Tuma
0

votes
0

answer
7

Views

VSCODE: Cannot read property 'local' of undefined

OS: Ubuntu 16.04 VS Code Version: 1.32.3 I can't install any extensions for my vs code. When I click 'install',the error 'Cannot read property 'local' of undefined' comes out. I also tried to install manually, and it doesn't work too.enter image description here
Zigang Fu
1

votes
1

answer
6

Views

How to disable Enter button for code snippet in VSCode

Sometimes when I press the Enter button, VSCode will aggressively complete the code which I don't want. For example: When I type in the import numpy as np and press the enter, VSCode will change the np to numpy or when I type in the else and press the enter, VSCode will change it to else { /*...*/...
Pzzzzz
0

votes
0

answer
3

Views

Expo not hot-reloading from VS Code debugger

I'm working on my React Native app in VS Code, with the React Native Tools debugger running on 'Debug in Exponent'. Live reloading works, but when I enable hot reloading (after disabling live reload), hot reloading doesn't happen. I'm sure you'd like to see various settings. Not sure what's importan...
Jonathan Tuzman
-1

votes
1

answer
27

Views

Pure Regular Expression replace n by n+1

How do I replace every number n that matches a certain pattern with n+1 in VsCode? E.g. 1,2,3,4,5,6, Result. 2,3,4,5,6,7,
林启帆
1

votes
0

answer
8

Views

Hello World application for Azure Functions with TypeScript fails to start with VSCode

I am trying to build a very basic Application to test out Azure Functions with TypeScript. I have the Azure Functions extension installed in Visual Studio Code. All detailed informtaion about the environment and the Log output with the errors is detailed further on. I have already tried playing arou...
PhoenixDev
1

votes
1

answer
609

Views

Red sguigglies in TypeScript file for all third party libraries

Visual Studio Code doesn't like my third party libraries (it gives them red sguigglies when they compile just fine). I see this: So the dependencies here that have red sguigglies are: KnockoutJS Xml2Json jQuery How do I get Visual Studio Code to like my third party libraries (remove the red sguiggli...
BeniaminoBaggins
0

votes
0

answer
3

Views

in VSCODE: how do i define the exact [top level]path that git should be scanning for changes?

i got a notification in the IDE saying there are too many changes for git - it seems that git is scanning my while C drive (on windows) I tried checking the settings.json file specified in the git extention properties : but it's empty also there is an auto detect option which is set to TRUE
Dror
0

votes
2

answer
514

Views

Debug jasmine tests written in typescript node in vs code

I have my unit tests written in jasmine and those are in typescript // about.service.spec.ts // say 4 to 5 test cases // spec/support/jasmine.json { 'spec_dir': 'src/tests/', 'spec_files': ['**/*.spec.ts'], 'helpers': ['jasmine-helpers/**/*.ts'], ... } // launch.json - vscode file { 'version': '0.2....
user3205479
0

votes
0

answer
2

Views

Could not find com.android.tools.build:gradle:3.2.1

To be honest i have zero experience in mobile devolopment and am trying to learn flutter as every body telling me it's the future . but i had many errors on the ways in just installing it . what i did to install it with vs-code : installed oracle jdk8 installed android studio setup the avd and makin...
a lovely person
1

votes
1

answer
232

Views

How to ADD grammar and configuration to an existing VSCode language extension with an Extension?

I am trying to extend the AL language from Microsoft by adding regions. I can do this manually by going to the vscode extension folder .vscode\extensions\Microsoft.al-0.14.17461 and changing the file al.configuration.json and alsyntax.tmlanguage. But I want to do this by creating my own VSCode exten...
BartP
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
1

votes
1

answer
117

Views

How enable Typescript typing and intellisense for vue props in template in VS Code?

I'm working with Vue and VS Code with vetur extension installed. I've defined a MyClass class with two public attributes. Inside the 'script' section i'm able to get proper intelisense for the value property. But I cannot check intellisense nor typing enforcement inside the template. as the image b...
Daniel Santos
1

votes
1

answer
157

Views

How Can I Fix VSCode Import Path Suggestions In Lerna Monorepo?

VSCode does a great job with autosuggesting imports, however inside a (Lerna) monorepo it only suggests relative paths from one package to another, for example: import example from '../../../@scope/example/lib/index.html' I need to refer to other packages using their package names: import example fr...
Undistraction
1

votes
1

answer
66

Views

How is Calva related to Clojure extension in Visual Code?

I found two most popular (number of installations) Clojure extensions to VS Code: Clojure Calva Both are maintained but Calva seams to have more attention. Both are aimed to help to integrate Clojure (and ClojueScript) to VS Code users. It is unclear to me if they are complementary to each other or...
trojek
1

votes
1

answer
42

Views

VS code is showing me +5000 files that supposedly have changed on my “macbook” repository, i don't know how this happened

This is why i think it has created a git repo on my main drive: Not sure how this happened: I think, I mistakenly added my macbook drive as a repository from Github desktop and i don't know how to get rid of this.
GabrielCereal
1

votes
1

answer
39

Views

Display full string in F# interactive window

If I type the following into an fsx in Visual Studio Code let longString = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo con...
aloisdg
1

votes
1

answer
21

Views

How can I copy the entire line without selection?

I wonder if there's a keyboard shortcut to copy the entire line where the cursor is without having to select it. NOTE: I know how to duplicate it up and down, and how to move it too, but the problem is that sometimes I want to copy the same line of code to another different method, even to another d...
tastydb
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
0

votes
0

answer
6

Views

VS Code: Unable to resolve path to module with Webpack and Jsconfig in VS code

I have a React project I am building in VS Code. I'm using Webpack, so I wanted to add some aliases: module.exports = { resolve: { extensions: ['.js', '.jsx'], alias: { Config$: path.resolve(__dirname, 'config.js'), Css: path.resolve(__dirname, 'src/client/resources/css'), Client: path.resolve(__dir...
Connor Low
2

votes
1

answer
25

Views

VS Code - debugging referenced project (.NET Core)

How can I force debbuger in Visual Studio Code to step into method which is defined in project which I added reference to? I am referencing Encog library which is outside the working directory like this: Exe netcoreapp2.2 IDS_CS Debugger starts and everything seems fine, however I cannot step into m...
TomasB
0

votes
0

answer
4

Views

How do I prevent Visual Studio Code from changing the encoding of a file

I had a file with this line of text: , format(atom(NAME), '«~w»~33t', [Atom]) I opened with Visual Studio Code at it becomes , format(atom(NAME), '�~w�~33t', [Atom]) Why, and how do I prevent this? Of note, Visual Studio 2017 does not apply this change. According to that program the ori...
Alan Baljeu
0

votes
0

answer
11

Views

“Cannot find or open the PDB file” in VS Code

I see lots of questions and answers for this issue in Visual Studio, but no answers for VS Code. It's really annoying to see about a hundred of these messages in between my WriteLines. Is there a way to fix this issue for VS Code? Full console output is below. As you can see, it mixes these warning...
icebird76
0

votes
0

answer
6

Views

Visual Studio Code & PHP: Escaping Quotes in Echo Statements

All, I have started using Visual Studio Code for managing a large PHP project (switched away from PHPEdit), and it is working great! However, there is one annoyance I have and I can't seem to find an extension that fixes it. When typing an echo statement such as echo('');, I've noticed that VSCode...
Ryan Born
0

votes
0

answer
5

Views

How can I make VSCode focus on the active editor by hitting Escape?

This drives me nuts, I am so used to Visual Studio where I can hit Escape and get back to editing. VSCode doesn't do it! Ugh! Is there a way to make it work?
Aleksey Bykov

View additional questions