Questions tagged [visual-studio-code]

1

votes
1

answer
1.3k

Views

SAPUI5, not OpenUI5, application development in VSCode

I am working on one pet project to get the better understanding of the SAPIUI5 framework. About me, I am a very experienced front-end developer and enjoy working in VS Code IDE. I started SAPUI5 development in SAP Web IDE and then exported the project to eclipse to run it locally, but in eclipse, I...
Atul Chaudhary
1

votes
2

answer
1.8k

Views

How to run unsafe code in “visual studio code”?

I am using Visual studio code and when I try to run an unsafe code it throws the following error ''message': Unsafe code may only appear if compiling with /unsafe' and as in visual studio, it does not have option like project->properties.
Prakash Reddy
1

votes
2

answer
800

Views

Trying to use emmet with a react app in vs code

I am using Visual Studio Code and creating a React App. I understand that Vsc comes with Emmet but it does not work with my React App. I have tried putting the following code in settings. 'emmet.includeLanguages': { 'javascript': 'javascriptreact', 'xml': { 'attr_quotes': 'single' } }, 'emmet.trig...
AltBrian
1

votes
1

answer
873

Views

Visual Studio Code - Java - Lombok - The method is undefined for the type

I downloaded the following project and imported it into Visual Studio Code: https://github.com/oktadeveloper/okta-spring-boot-2-angular-5-example I have a problem on the following class, when invoking: car.getName(). https://github.com/oktadeveloper/okta-spring-boot-2-angular-5-example/blob/d5c95916...
davidesp
1

votes
1

answer
402

Views

How to correctly declare a GraphQL query without parameters.

I'm using vs code + graphql-cli for validating & linting the schema. In the following declaration (in the graphql schema file): type Query { users(): Int } The users declaration above is marked as en error, but it doesn't make any problem (or warning) by the server - it's only vs code and graphql li...
Robert Zaremba
1

votes
1

answer
488

Views

How can I remove left vertical lines in VS Code?

I have searched the whole web but cannot find where to remove these two types of vertical lines on the left side. I specifically mean the colored thick vertical line (marked with red box) and the thin grey vertical line (also marked with red box). If someone could tell me that would be awesome! Than...
1

votes
2

answer
707

Views

Auto-saving files upon changes with VSCode

I have used WebStorm from JetBrains for almost 4 years now. It's a fantastic IDE for many reasons, but one of the best features is that it saves versions of files outside of version control. So if you accidentally delete files or lose files before they are saved by your VCS, WebStorm has a copy of t...
Alexander Mills
1

votes
1

answer
292

Views

Visual Studio Code - Python debugging - Step into the code of external functions when executing

In a Python project, how do you tell the built-in VSCode debugger to step into the code of functions from other libraries on execution? I know it is possible for functions implemented in standard libraries by adding a 'debugOptions': ['DebugStdLib'] to your configuration in launch.json as specified...
John Smith
1

votes
1

answer
224

Views

How to trigger parameter hints in Visual Studio Code?

I want to show parameter hints when I position cursor within the parentheses of the calling method. I know similar answers already exist for Visual Studio and on Reddit, but I couldn't find a quick answer for this question on Stack Overflow. So I've decided to add it.
Matej
1

votes
1

answer
530

Views

The import org.springframework cannot be resolved - Java(268435846)

I'm trying to use the Spring Framework in my project, but I have a problem with the import. I'm working with Gradle for builds, React JS for the front end and Java for the back end. The weird thing is that I can use classes as RowMapper and JdbcTemplate (I can read and write in my database using t...
Sam Mahaux
1

votes
2

answer
27

Views

npm install -g -D not updating dev dependencies in package.json

I've tried opening and closing the open package.json editor, and restarting VS Code, and running and re-running the npm install command at least 8 times but to no avail. For some reason, the command below does not update my dev dependencies in my package.json file. $ npm install -g -D webpack I know...
Water Cooler v2
1

votes
2

answer
30

Views

How can I install my own Extension? Vscode

I made my own Extension pack using Yeoman Generator, but I can't figure out how to install it on my vscode. Maybe if I export my extension pack to the Marketplace it will be possible, but I dont want to do that
isaid
1

votes
2

answer
69

Views

Locally disable warnings of Python Language Server in Visual Studio Code

I have recently installed Python Language Server in Visual Studio Code. I sometimes have some warnings that I want to locally disabled For example, let's assume I have the following code: import org.sikuli.script.SikulixForJython from sikuli.Sikuli import * from guide import * It is normally run fro...
Jean-Francois T.
1

votes
2

answer
40

Views

Cast JSON to PowerShell with proper Auto-Completion (IntelliSense)

Is there a way to geth autocompletion with IntelliSense in Visual Studio Code work properly, when I read a json file and cast it to a PowerShell like: $config = Get-Content 'SOME_PATH' | ConvertFrom-Json $config.attribute1 The problem is that the file needs to be in memory before it can get the str...
nailuenlue
1

votes
1

answer
44

Views

How to fix “Clone.Bitmap” system out of memory in C# [duplicate]

This question already has an answer here: C# Bitmap/Graphics Out of Memory 1 answer c# Out of Memory Exception with System.Drawing.Image 3 answers C# Image.Clone Out of Memory Exception 6 answers On VS Code, I would like to set up UI tests on the app's visual by taking the app's screenshot elemen...
GioOps
1

votes
1

answer
38

Views

Private inheritance equivalent in Typescript (Only including or excluding specific class members or properties)

What is the best way to simulate private inheritance in Typescript? Specifically, the chid class wants to hide certain members of a parent class. For example, the expected workaround should achieve the following: Class CustomArray extends from Array, and hides specific members say pop() and shift()...
user3330840
0

votes
0

answer
15

Views

In Visual Studio Code, I am having trouble changing the folder that the power shell terminal runs out of

In VS Code, I cannot figure out how to change the folder that my terminal runs though. I have searched far and wide on the internet with no answer. Whenever I try to run my code, I get an error message saying, 'Attribute 'program does not exist ('C:\Projects/app.js')' and I am given the option to op...
RCE11
0

votes
0

answer
13

Views

Creating a UWP solution in Visual Studio Code

I'm trying to create an UWP application in Visual Studio Code. I want to create an app with a ribbon like interface (the interface used in Microsoft office), and since I this is my very first attempt to use VSCode I have no idea how to create the project. At the VSCode terminal help I saw a many di...
Jonatas Povoas
0

votes
0

answer
12

Views

Why does VSCode keep connecting to Apple?

I have a web debugger running on my machine, and I noticed that VSCode is running a lot of web calls to captive.apple.com/hotspot-detect.html followed by a call to ipv4.icanhazip.com:443 every second. The body of the Apple call is SuccessSuccess What is VS Code up to in the background?
Drise
-1

votes
2

answer
486

Views

visual studio code not recognizing html files

VS code has suddenly stopped recognizing html files (the file icon is the default one for files with no extension) all other file extensions work just fine except for html the tags still work but it won't autocomplete
seolbinism
0

votes
0

answer
12

Views

I can't type \ in Visual Studio Code

First of all, I am trying to bind \ t to start quickOpen. I have the following key shortcuts: { 'key': '\\ t', 'command': 'workbench.action.quickOpen' }, Now when I press \, I see: (\) was pressed. Waiting for second key of chord... This prevents me from actually typing \ in my code Any ideas ho...
Sparrowcide
1

votes
4

answer
45

Views

How do I stop VS Code from totally destroying my code on save?

I've gone through formatting settings and stack overflow posts, I've toggled with a bunch of different settings and can't seem to find an answer to this. Nothing in settings.json seems to matter, maybe it's being overwritten somehow? My tab spacing is set at 2 spaces and every time I restart my comp...
Zack Shapiro
0

votes
0

answer
4

Views

Is there any possible way to hide breakpoint in vscode?

Sorry for my bad English, Is there any way to hide break point on VS CODE? I never use breakpoint, and want to make my vscode page bigger.
user1911959
0

votes
0

answer
7

Views

Clearing the terminal in vs code without using ctrl C

I want to know how do I clear up my terminal in Vs code without using Ctrl C and restarting my how program?
TheWorldOf_ Sam
1

votes
1

answer
347

Views

Visual Studio - Open Recent in a new Window

Is there any setting in Visual Studio such that when I do 'open recent' it always open in a new window. Right now it just opens it in the same window.
Knows Not Much
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
503

Views

Terraform - Auto-populate required attributes in IDE

I took a class recently with the exceptional Yevgeniy Brikman, and as he created Terraform resources, his IDE auto-populated required attributes. For instance, if he typed: resource 'aws_lambda_function' 'lambda_example' { His IDE would auto-populate: resource 'aws_lambda_function' 'lambda_example'...
Nathan
1

votes
1

answer
1.2k

Views

Random High CPU Usage

I have noticed that Visual Studio Code randomly has a really high CPU usage. Generally, this seems to be related to the window where I have a SQL server project. Below is the output from code --status when this recently happened. Any insights into what might be going on here? code --status Versio...
thebitguru
1

votes
2

answer
1.3k

Views

Ubuntu how to complete purge Visual Studio Code

I'm using VSC in Ubuntu 16.04 LTS and I want to complete uninstall it. So I've tryed theses commands: sudo apt-get remove code sudo apt-get purge code sudo apt-get update And everytime when I re-install I see my project that were open at my last use and I have all my plugins, my themes, keybinds.......
Delbo ar
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
2

answer
134

Views

Auto Format on Visual Studio Code for .cfm files

Does anyone know if there's a way to auto format ColdFusion documents on VSCode the way it does for HTML files?
Shawn Yap
1

votes
1

answer
56

Views

F# : wrap tuples into multiple lines

Let's say I have a simple Tree : type Tree = | BinaryNode of Tree * int * Tree | Tip member this.Sum = match this with | Tip -> 0 | BinaryNode(left, value, right) -> left.Sum + value + right.Sum and I define a tree by : let tree = BinaryNode( BinaryNode( Tip, 2, Tip ), 1, BinaryNode( Tip, 3, Tip ))...
itminus
1

votes
1

answer
64

Views

Is it possible to have multicolored headings in markdown syntax in at least one of these editors: Sublime Text 3, Vim or Visual Studio Code?

Essentially I would like for my headings to look like this: How could I accomplish this in markdown syntax? I prefer sublime text but would be happy if I can make this happen in Sublime Text 3, Vim or Visual Studio Code. Lastly, if getting the subheadings to produce multicolors is difficult, then, h...
hearsay
1

votes
1

answer
433

Views

ASP.Net Core 2 - How can I get Visual Studio Code to detect Razor Pages?

In Asp.net core 2, they introduced razor pages. Using visual studio code if I create a 'Pages' folder in the root of the solution and then add a new item 'Greeting.cshtml', then add an @page directive at the top followed by the content I want to display, I don't see anything when I navigate to http:...
User123
1

votes
0

answer
64

Views

Using Map() with typescript in VSCode shows error message

When using Map() with typescript and VSCode I get the error message: Can not find name 'Map()' with VSCode even thou compiling and executing works fine and without errors. How can I get rid of the error message? I am not sure if this is a bug within VSCode or with my configuration. I assume the late...
Jodo
1

votes
0

answer
1.1k

Views

How to change colors of syntax highlights in VS Code?

I am working with React, and Language Mode of VS Code set to Javascript React. Code in Text Editor looks like this: I want 'Text', which refers to normal text in React, to be of different color. But, I can't find the suitable prop in workbench.colorCustomizations setting to tweak. What is the right...
Eduard
2

votes
0

answer
14

Views

Can Visual Studio debug Go plugins?

I have a Go project that consists of a command line tool and some Go plugins. I have a build script that builds the CLI, and then goes into a plugins directory and compiles each plugin with the -buildmode=plugin option. I would like to figure out if launch.json can be configured to selectively pas...
Nick Pollitt
1

votes
0

answer
23

Views

VS Code numerical arguments

I'm trying to get rid of emacs. One feature I liked very much was the numerical arguments. This works like this: Ctrl+80 followed by'='. A line is filled with 80 '='. Is there anything comparable in VS code?
ebiondi
1

votes
0

answer
463

Views

Use d.ts files without TypeScript (instead of JSDoc)

I'm working on a JavaScript project using babel. I've used .d.ts files to define types for each .js file / class just for code completion instead of JSDoc. This works fine when importing the Ability.js files within an other class. All the type definitions work for both variables and functions, and I...
Jeffrey Lanters
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

View additional questions