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

VSCode color theme function calls

I am doing my own local tweaks to this color theme for VSCode. The theme will be used to mainly code in Java and C++. I would like function and method declaration color to be different from function ...
1
vote
1answer
8 views

How to change Python extension locale in VSCode?

I can't figure out how to install the Python extension in VSCode in another language, specifically - I want it to be in English, but instead it is being installed in the language of my operating ...
0
votes
0answers
7 views

VSCode not showing Pylint refactor errors

As a newish user of VSCode (ver. 1.27.2) I am trying to run Pylint (v. 2.1.1 on Python 3.6) with many of the extra checkers enabled like the design checker but even though the errors show up on the ...
0
votes
1answer
11 views

Style Intellisense Not Working in VS Code When Language Mode Set To Vue

When I am editing a file with the Vue extension in VS Code I do not get Syle intellisense in the HTML. If I change the Language Mode to HTML then it works but I no longer get Vue intellisense. Is ...
0
votes
0answers
6 views

Can I find tokens (not text) in vscode?

vscode has text and regex based search tools. But it also has a real AST - how can I find directly find a token in the AST with a given name?
0
votes
0answers
10 views

VSCode JavaScript Weird Intellisense

I'm currently taking the PluralSight course on Node.JS. I'm having some trouble wrapping my head around something. See the picture below. From the picture above, you can see that I'm getting an ...
1
vote
0answers
9 views

How to enable pep8.E501 fixing on file formatting shortcut?

When I'm using Ctrl+Shift+I shortcut it fixes all errors like invalid count of blank lines. But E501 (too long line) is not fixing. Line saves its length. I've found solutions for ignoring that error ...
3
votes
0answers
18 views

Problem when using py.test with a pytorch project via the python extension of visual studio code

I'm working on a pytorch project using visual studio code and trying to use py.test. However, when trying to discover (or run) tests using the vs-code extension, I get an error (see log) importing ...
1
vote
2answers
50 views

Stuck when studying java from learnjavaonline

class Student { private String firstName; private String lastName; public Student(String firstName, String lastName) { this.firstName = firstName; this.lastName = lastName; ...
-1
votes
0answers
25 views

VSCode and sqlite for java console application

I'm using Visual Studio Code for a java console app under Windows. It opens and reads from / writes to a SQLite DB but I'm getting the dreaded "No suitable driver found for jdbc:sqlite:mydata.dat" ...
0
votes
0answers
10 views

How to hide dashes on right sidebar in VS Code?

I want to get rid off these dashes on right scrollbar of the editor It's like minimap to indicate the current highlightings in editor.
0
votes
1answer
14 views

Visual Code Studio and Github: my new branch not taking into account my change

I'm pretty new with Visual Studio Code and Github. I've managed to get a remote project by using Git plugin on Visual Studio Code by doing this: git clone master I was on the master branch and made ...
0
votes
0answers
3 views

Display create react app's lint errors in Visual Studio Code with 'react-app'

With create react app and Visual Studio Code, I want display errors in editor. I have followed this tutorial, however getting below error in 'OUTPUT' [Error - 12:41:48 PM] Cannot find module 'eslint-...
0
votes
0answers
7 views

VS Code delay before re-linting with PyLint

I'm using PyLint with VS Code. After PyLint gets done I have some refactor and convention warnings. When I go to the first warning in the code and fix it, PyLint wipes the "Problems" tab and starts ...
0
votes
0answers
10 views

How to hide extra/auxiliary files generated by pdflatex in Linux

I have seen answers to this similar question which suggest using latexmk -c or pdflatex -aux-directory=/some/temp/dir <additional options>. I prefer the latter because you can create a ...
0
votes
0answers
5 views

How to run/debug two Spring Boot Application simultaneously in VS Code?

I have two spring boot applications (server and client) in same work-space. I want to run/debug both applications side by side. It's easily done in Eclipse. But I am wondering how to achieve this in ...
0
votes
1answer
12 views

VsCode: how to avoid to open more than one file for each editor group?

To be more productive on my work, I'd like to have the possibility to open only one file for each editor group. My purpose is to avoid to have 20 or more tabs opened at the and of the day and lost ...
0
votes
1answer
8 views

How to set up a local development environment for PySpark ETL to run in AWS Glue?

PyCharm professional supports connecting, deploying and remote debugging of AWS Glue developer endpoint (https://docs.aws.amazon.com/glue/latest/dg/dev-endpoint-tutorial-pycharm.html) , but I can't ...
4
votes
1answer
53 views

Visual Studio Code replaces console.log()

Visual Studio Code randomly (50 percents of cases) replaces the console.log( with console( in JavaScript (ES6, Vanilla). All settings are set by default, no shortcuts or extensions used. Have anybody ...
0
votes
0answers
17 views

I can't remote workspace in Visual Studio Code

I edit my config file like below. "name": "", "host": "example", "port": 21, "type": "ftp", "username": "example", "password": "example", "path": "/var/www/html/", "...
0
votes
0answers
11 views

Use node runtime of Visual studio code editor for running js snippets

As Visual Studio Code is built on top of node.js, I am wondering if we can make use of the editor itself as 'node runtime' without installing another node.js runtime on the PC.
0
votes
0answers
10 views

VS Code , custom snippet, tab stop problem

This snip would tell the question .. This is the snippet : "..var str":{ "prefix": "..var str", "body": "${1|let,const,var|} $2 = ${3|\",',`|}$4$3;$6" } What I'm trying to achieve is : ...
1
vote
0answers
15 views

Is there a way to retrieve user settings from a corrupt VS Code?

I have Visual Studio Code 1.27.2 on Windows 10. Background: Recently there was an issue in the system not related to VS, and I had to run system repair which seems to have messed up with the ...
0
votes
1answer
25 views

Typechecking not working with VsCode on .ts files

My environment: Visual Code: 1.27.2 typescript: 3.1.1 tslint: 5.11.0 I am writing this simple erroneous of code in a file called server.ts: let isDone: boolean = "done" After running tsc I am ...
0
votes
0answers
11 views

compile error in vs code when using python decorator

import yaml, os import logging.config def setup_logging(default_path='logging.yaml', default_level=logging.INFO, env_key='LOG_CFG'): """load logging.yaml file or use system environment variable '...
1
vote
1answer
15 views

How can I hide every single possible tooltip or popup in VS Code?

I've tried just about every setting I could find in order to turn off these tool tips but to my dismay, they keep popping up almost every time I write a function. I've seen on some other threads that ...
0
votes
0answers
7 views

Create Multiple Choice Snippets VS Code

How can I create a multiple choice (as in choose ONE OR MORE), user-defined snippet in VS Code? I see in the docs how to create a snippet where ONE item from a list is chosen, but how can I ...
1
vote
0answers
12 views

VSCode trying to configure c++ gdb

I am trying to configure the debugger on visual studio code but am failing to get it to work. I've installed MING-W64 and the c/c++ extension on visual studio code and when I run my code, here is the ...
0
votes
0answers
24 views

F# modules, any way to simply import another file? [duplicate]

I'm working in vscode and F# as a data science student, Is there any easy way to simply import another F#-file and use its function from another F# file? I simply want to use another files ...
0
votes
0answers
10 views

AWS Amplify API snippet in VS Code blocking ReactJS Snippets

My React snippets in VS Code 1.27.2 were working fine until I installed AWS Amplify API snippet. After I install AWS Amplify API, typing rcc never finds react create class. After I remove the AWS ...
0
votes
0answers
10 views

Heroku Login unable to verify the first certificate vscode/nodejs

Summary Trying to login to heroku get Warning: unable to verify the first certificate. I attempt the login anyway and get Error: unable to verify the first certificate. What I've done I've been ...
-1
votes
0answers
3 views

Excel Export in Angular 5

I am trying to perform a POST request to get Excel data. The response content type is not JSON. In the HTTP call, it is showing an error, since the response type is not JSON. I tried passing ...
1
vote
1answer
64 views

After update to MacOs Mojave Visual Studio Code text is almost unreadable

I have just installed MacOs Mojave... And when I opened Visual Studio Code... Surprise! The text it's kind of dimmed with less contrast, specially on the external display. The result is that the code ...
0
votes
0answers
7 views

PlatformIO ESP-IDF compiles everything to pioenvs - VSCode and Win10

I'm trying to get used to the toolchain for PlatformIO on Windows 10 over VSCode, compiling a simple project for the ESP32 (doit-devkit-v1). I have noticed two things: When building an "Arduino" ...
1
vote
1answer
18 views

vscode warning on first arguments being unused, but I use later arguments

Here's some basic code from express generator: // catch 404 and forward to error handler app.use(function(request, response, next) { next(createError(404)) }) vscode complains: 'request' is ...
1
vote
1answer
26 views

Undo last push with VSCode

I'm trying to delete my last push with VSCode. I tried using "Undo last commit" and "Discard all changes'. When I do that my last commit gets deleted on my computer but I cannot push it again because ...
-3
votes
1answer
16 views

I can't set up JDK on Visual Studio Code

Ienter link description here saw this clicked on it it redirected me to redhat site and made me downlaod red hat developer studio but as i said i want it in visual studio code.I did download jdk but ...
1
vote
0answers
12 views

AttributeError: module 'networkx' has no attribute 'Graph' in vs code

I installed networkx module for python in windows and tried running a simple program on it using vs code. But when tried to run it says "AttributeError: module 'networkx' has no attribute 'Graph'". ...
1
vote
0answers
19 views

Visual Studio Code: Is there a way to build and debug in one step?

Is there a way to build a target and debug that target all in one step in Visual Studio Code? This would be similar to the Build before running setup in Visual Studio. I'm running version 1.27.2 on ...
1
vote
1answer
9 views

VSCode shows TSLint errors only for opened file

I have a project with this structure: -src -dist -node_modules -gulpfile.js -tslint.json My typescript files reside in src and are transpiled in a gulp task into dist folder. I've installed tslint ...
-2
votes
0answers
15 views

Github and VS Code - Access denied to push to my repo - Conflit

I have always had a lot of difficulties trying to make it right on Github ; Today, I got an error trying to push changes.. Do I have to use : $ git config --global user.name "John Doe" $ git config --...
0
votes
0answers
7 views

how to format <i18n> tag in .vue file using vscode

I use node to write JSON content into tag in .vue file, it looks like this. <i18n> {"CN": {"hello":"你好"},"EN": {"hello":"hi"}} </i18n> So, how can I format it like below? <i18n> ...
-1
votes
0answers
10 views

Trying to create syntax highlight extension

I've creatated an extension for jaggery syntax highligting, based on this sample: https://github.com/Microsoft/vscode/tree/master/extensions/html. All works fine, except I can't figure out, how to ...
2
votes
2answers
42 views

What is the best and easy way to remotely debug a python code running in a docker container?

I have just started working on python. I want to debug python code that is running in a docker container. Can anyone please suggest me what could be the best way to remotely debug this? I am open to ...
1
vote
1answer
26 views

Unrecognized request: { _request: evaluate } in visual studio code

This is my java code on visual studio code when I try to run it on visual studio code and enter a number it says: Unrecognized request: { _request: evaluate } ... What should I do to disappear this ...
-1
votes
0answers
26 views

VS code : terrible “go to definition” support in php

Take this simple code and try go to definition on "aProducts". Vs code can't find anything EVEN if it's right above : <?php $aProducts = $aProductsByCategory[$category_id]; foreach($aProducts ...
0
votes
0answers
19 views

Omnisharp build fails to find Microsoft.WebApplication.target, xbuild folder missing?

I'm trying to open and build the Linnworks SDK https://github.com/LinnSystems/LinnworksNetSDK in VSCode on Fedora Linux. I think my problem is that a package is not installed or omnisharp hasn't ...
0
votes
0answers
7 views

Running VS-Code / X11 from headless linux server without Gnome/KDE

I'm trying to run vs-code on a remote headless Linux box, and display via X11 to a local X server (mobaXterm in a Windows box). I can ssh into the linux box, set DISPLAY environment variable, and run ...
0
votes
0answers
11 views

In Vscode, How can I map a network drive when running a tasks.json build?

I am running Visual Studio Code (VScode) on Windows 10. My code is on a network drive at z:\code\project\code.cpp The code is on a Linux server and is compiled to run on Linux only. I have created ...
0
votes
0answers
12 views

Visual Studio Code Intellisense does not recognize inet_pton or inet_ntop, why and how to fix it?

I have setup a Visual Studio Code environment for writing C++ programs. I am currently writing a UDP stream, client and server, which requires me to use the functions inet_ntop and inet_pton. However, ...