Questions tagged [visual-studio-code]

Visual Studio Code is an open source text editor available for Linux, OS X, and Windows. It includes support for debugging, embedded Git Control and rich development experiences such as intelligent code completion. It is open source driven by Microsoft, built on Electron like GitHub's Atom.

0
votes
0answers
7 views

How to delete column of html table in Visual Studio Code?

Is there a way to quickly delete the second column of an html table in Visual Studio Code?
1
vote
0answers
12 views

Using debugger, view a function's output stream

Using Visual Studio Code's powershell debugger, is it possible to view a function's output stream aka success pipeline? For example, consider the following simple function: function lotsOfOutput() { ...
0
votes
0answers
13 views

How to parse data from sql server data into node.js script for a delivery api integration

I am working on an API integration with data from SQL Server Database, using Node.js, I want to parse customer information and ordered items information through to the API script to show my backend. ...
0
votes
1answer
8 views

How do i move referenced DLLs with debug/release in VSCode?

Set up I converted a C# VS2015 console application project over to VSCode and im trying to add a DLL reference and move any referenced DLLs on build. To start off, Dotnet add package didnt work, ...
-5
votes
1answer
44 views

Why is this print else code not providing the output to “c” or “Okay”? [on hold]

from random import randint randint(0,9) a = input("Enter value for a...") b = input("Enter value for b...") c = randint(0,9) sum = float(a) + float(b) + float(c) print(sum) Till here, the print ...
0
votes
0answers
7 views

How to generate .classpath container entry(all dependencies in gradle cache) for java project in vscode using gradle eclipse?

The basic .classpath file generated by gradle eclipse shown as follow: <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" output="bin/main" path="src/...
1
vote
0answers
9 views

How do you stop Prettier in VS code splitting attributes onto multiple lines?

I am using prettier to format my code in VS Code but I really dislike how it does it. My main beef is it splitting attributes over multiple lines. <input type="checkbox" name="asiaNews" ...
0
votes
0answers
10 views

Visual Studio Code: ImportError when trying import function from a folder in the current working directory

└── MyProject ├── folder_one │ ├── welcome.py │ └── folder_two ├── goodbye.py In Visual Studio Code 1.34.0 I am trying to import the function bye contained in goodbye.py ...
0
votes
0answers
36 views

How to fix “g++: error: helloworld.cpp: No such file or directory” in visual Studio Code with WSL installed

I installed Visual Studio Code on W10 to run some code with WSL installed ( Ubuntu). I followed the steps in the following article : https://code.visualstudio.com/docs/cpp/config-wsl But I keep ...
0
votes
1answer
13 views

npm start works on eclipse and doesn't in visual studio code

npm start works fine on eclipse but in visual studio code it shows the error below: [email protected] start E:\workspaces... gulp buildNoRev && gulp connect | ng serve --proxy-config ...
0
votes
0answers
25 views

Input and visual output differs from terminal to terminal (termcaps/ioctl)

I'm creating a bash clone and am having difficulty figuring out why/how the input and visual output differs from terminal to terminal. I've already tried different terminals (Iterm 3, Mac standard ...
1
vote
1answer
14 views

Change key binding for German umlauts in VSCode

I like the use the German umlauts "ö", "Ö", "ä", and "Ä" on my keyboard for coding in VSCode, i.e., use these keys to type square and curly brackets. Here is what I tried in keybindings.json: { "key":...
-2
votes
1answer
43 views

Visual Studio Code 1.34.0 ignores C# #if false construct

I use the latest Visual Studio Code on Ubuntu 19.04 for .Net Core 2.2 C# development. It ignores the #if false code-block comment-out. What do I miss? Thanks. #if false Console.WriteLine("Don't ...
0
votes
1answer
36 views

Can someone help me figure out why VS Code refuses to acknowledge getline as a function?

I'm currently using VS Code with minGW installed. I'm trying to use getline() but no matter which libraries I include, stdlib.h, string.h, etc., it just tells me that getline has not been defined. I ...
0
votes
1answer
11 views

How to run botium tests in vs code with javascript,mocha and jasmine

I want to setup botium with vs code IDE .I need guidance for this. As botium is brand new.
0
votes
0answers
10 views

How to add a new language Service to VSCode?

I'm trying to add code completion / intellisense to a language used inside of an enterprise service. Unfortunately the vendor does not provide any kind of IDE solution at this point and in order build ...
0
votes
0answers
13 views

Starting rails server on VSCode [duplicate]

I'm trying out Microsoft's vscode and enjoying it up until now.. I can't get the rails server started. I'm just doing rails s and this is what I get: => Booting Puma => Rails 5.1.4 application ...
1
vote
1answer
17 views

In vscode how do I write an expression to watch a property value of an object while debugging?

"ThisItem" is an object I want to watch. Is there some way to watch its property values? I can't find documentation on what sort of expression is used in the Watch panel.
0
votes
0answers
18 views

Why does the Output window show limited output and/or terminate script prematurely?

The Visual Studio Code OUTPUT window shows a limited number of output lines and/or appears to cause the script to terminate prematurely. A simple 'for' loop using console.log to output first 100,000 ...
0
votes
0answers
21 views

I can't debbug my php application running in a docker container on my linux machine with Xdebug using Visual Studio Code

I'm trying to set up an development environment with docker to run an CakePHP application and debbug it using Xdebug. Aparentely, Xdebug configuration is alright, but it can't connect back to my IDE ...
0
votes
1answer
10 views

No commands matching with 'Enable Custom CSS and JS'

I was trying to add a theme to my VS CODE and i needed to run the command: Enable Custom CSS and JS in the ctrl+shift+P. But when I type it, it says that there are no commands matching. Is there ...
1
vote
1answer
36 views

How to use “!” as the comment indicator, but also NOT operator in language syntax highlight?

I am using VScode and create my own language extension to highlight syntax, where I need to use regular expression to find the comments. The basic rule is that everything after ! is a comment, ...
0
votes
0answers
10 views

In vscode run an external program pulled from maven in a non-java non-maven project

I have a vscode project that is essentially constructing data that gets fed into a separate program. The program is not part of the project, but it is available on our internal nexus server. What I'd ...
0
votes
0answers
9 views

How to set-up Visual Code to debug GAE apps that use dev_appserver.py

Over the years there have been various approaches to getting GAE dev_appserver.py to run/debug under MSVC. Running is easy enough but any breakpoints set are ignored unless workarounds/configuration ...
0
votes
0answers
10 views

Get list of acive formatters using the VSCode API

I'm working on an extension that acts as a formatting provider and I would like to implement some functionality that checks whether other Python formatters are also active, and confirms that my ...
0
votes
1answer
18 views

How to select highlighted text in VSCode

When navigating within a text, the VSCode is smart enough to highlight it like this. Is there a command to select the whole text, to allow quick modification?
0
votes
0answers
16 views

Getting Jedi to look at additional paths for code completion

I am trying to get jedi code completion to work with Python stub files within the Spyder IDE 3.3.3 (from Anaconda). In Visual Studio Code I can add the location of the files by adding to VS Code ...
0
votes
1answer
14 views

How do I enable line numbers in zen mode for VSCode?

Is there a way to enable line numbers in zen mode for VSCode (version 1.34.0)?
0
votes
1answer
22 views

vscode + python snippet completions: what is `{} ipdb`

I have a snippet for inserting an ipdb breakpoint in python code in vscode. But when doing tab- or ctrl-space completions, {} ipdb appears as the first option, causing me always to insert the wrong ...
0
votes
1answer
10 views

Prefer default export.eslint(import/prefer-default-export) for constant

I am dealing with constant file and having just one constant object in that file. I am facing trouble with ESLINT error checking part. Constant file name :- constant.js export const myObject = { ...
0
votes
0answers
14 views

VS Code - Problem with Polish signs in Python's terminal

I'm trying to get familiar with Python but I'm having some language issue in Terminal tab. My projects are in folder with a Polish diacritic name in it and when I'm trying to start the programme ...
0
votes
1answer
19 views

How to color parameters in VScode in the declaration method and the body

I can not make see that the parameters of the methods are of a certain color in the body too. Any help will be appreciated.
0
votes
1answer
21 views

VSCode: How do I search and replace text in only opened files?

I need to replace some text in only the files that are currently opened. Such as my project contains a.html, b.html and c.html; but I opened only a.html and b.html, so the replace won't affect c.html ...
0
votes
1answer
22 views

How do I get Visual Studio Code (VS Code) to show method preview of objects?

I've been following Traversy Media JavaScript crash course. I noticed that I couldn't get Visual Studio Code to show the methods of objects like he did. I searched and it said IntelliSense should ...
0
votes
0answers
11 views

Can up font size selecting line only ?[VS code]

I want to solve this if don't any extensions Can guide to solve this When selecting line of code I want to up font size that line only
-3
votes
1answer
35 views

Need help executing binary file on bash terminal with -wall -pedantic -ansi flags

Cannot execute program on Visual Studio Code terminal on Windows with -Wall -pedantic -ansi flags. The program for assignment right now is just a simple "Hello World" main in C with a struct I've ...
0
votes
1answer
27 views

Conda environment activation fails in VS Code

When I launch a Python terminal or use Shift+Enter to run code from my Python Files through VS Code on Windows, I get a message: This Python interpreter is in a conda environment, but the ...
1
vote
1answer
21 views

REMOTE-SSH development with VS Code in Python - hangs with “starting Jupyter server”

I am trying to do remote development in Visual Studio Code using the REMOTE-SSH extension. I connect to my Ubuntu machine just fine using the SSH Tunnel and select my python interpreter, but when I ...
0
votes
0answers
6 views

Refactor a JavaScript function using Move to a new file as the default export

In VSCode, you can refactor a JavaScript function by highlighting the code, right clicking, and selecting Refactor... and Move to a new file. This creates a new file with a named export. How do I ...
0
votes
2answers
19 views

JSDoc property name containing period

How can I document the property of an object in JSDoc / VSCode when it contains a period? For example: /** * @type {PersonObject} */ let personObject = { "first.last": "John Doe", // optional ...
0
votes
0answers
8 views

Debugging a lerna-typescript project in VSCode

I'm trying to build a monorepo using lerna+typescript, I'm using this repo as a start: https://github.com/Izhaki/mono.ts What i'm trying to achieve is to debug the code inside visual studio code. I'...
0
votes
0answers
16 views

VSCode extension doesn't reach activate function

I'm currently developing an extension and when I try to debug it I face an issue where the extension doesn't reach the activate() function. What could be causing this?
1
vote
1answer
20 views

visual-studio-code Powershell command auto-complete in the editor panel not working

I've just started using Visual Studio Code for working with Powershell. I've loaded the powershell extension, and when I connect to Exchange auto-completion of cmdlets works in the integrated ...
0
votes
0answers
10 views

Sync Explorer and Source Control sidebars

I would like to know if it's possible to sync Explorer and Source Control. I have opened multiple folders in my workspace, when I select a folder in Explorer, I would like to sync the selection in ...
2
votes
1answer
45 views

GIT > 20k new files chokes VSCode UI, “Too many active changes”

I am trying to add a folder that has to be tracked, however it is > 1GB / > 20k files. As soon I add it, I will get warning about too many active changes and Git simply will refuse to work correctly ...
1
vote
2answers
36 views

How to add an App.Config in Visual Studio Code?

How to configure a C# program with a connection string in Visual Studio Code? This is for .Net Core 2.2 using .Net Core SDK version 2.2.203 in Visual Studio Code 1.34.0 I have tried to add App....
-2
votes
1answer
64 views

how can i do spaces + tab convert to tabs inside code [on hold]

I search a while and I coun't find my answer. I'm searching a way that vscode transforme in code "spaces + tab" into "tabs" when i'm adding to all those spaces a tab. Like vim . as space, tab (size 4)...
0
votes
0answers
45 views

How to get cursor line on screen with VSCode Extension

I am modifying a VSCode extension. extension.js I know this. vscode.window.activeTextEditor.selection.active.line vscode.window.activeTextEditor.document.lineCount I want to know cursor line on ...
0
votes
1answer
19 views

How to use git with sftp?

I need to work on some php projects which are located on an sFTP server. What I need to accomplish is: Work with Visual Studio Code IDE Use git through the VSCode to commit changes locally Push repo ...
1
vote
1answer
24 views

Missing SVG icons after publishing VSCode extension

My extension uses two SVG images to navigate/refresh inside of vscode. View Image All works fine and dandy in the debugger but the published versions do not show the SVG images? Here is how I set ...