All Questions
Tagged with javascript visual-studio-code
13
questions
1
vote
1
answer
665
views
Numbered file backups for Visual Studio code
Looking for a way to save/have numbered backups using Visual Studio Code - functionality on same lines that emacs supports.
I'm refactoring rather complicated set of javascript files. Actions ...
1
vote
1
answer
3k
views
cannot push to github repository
i have removed PROJECTJS repo and want to use task-manager-js repo,when i type:
git remote -v
it gives me :
ProjectJS Task-Manager-JS (fetch)
ProjectJS Task-Manager-JS (push)
origin ...
11
votes
2
answers
5k
views
Syntax highlighting for embedded languages in VS Code
I am busy making my own grammar extension in Visual Studio Code. The language is called Snake, say, and the grammar kicks in when a file of the kind "*.snk" is opened, for instance "hello-world.snk". ...
0
votes
1
answer
43
views
javascript on VScode
I copy the code from my udemy course. But the result is totally different. Nothing shows on my website. Can anyone tell me what wrong it is?
html_code
js_code
website
0
votes
1
answer
47
views
Is there a setting that I can change/add to VSCode on Mac so that anytime I open a new blank file it defaults to javaScript?
I'm learning my first software language (JavaScript) and I like to use otherwise blank VSCode files/tabs as a 'scratchpad' which, after use, I don't care to save (since I copy/paste out the good bits ...
3
votes
2
answers
2k
views
Visual Studio Code: after typing 'log' to complete 'console.log()', it adds a new empty 'log' suggestion
Steps to recreate:
1) Type log and press enter when the suggestion widget appears. VSCode completes it so it types console.log().
Here's an image of what the suggestion widget looks like:
2) New ...
0
votes
0
answers
1k
views
VS Code quoteStyle doesn't seem to work
All other imports and strings on the file uses ", but when VS Code auto import some class it uses '. Typescript and Javascript quoteStyle are defined to auto.
If i change the settings to double the ...
2
votes
0
answers
446
views
TypeScript definitions don't update on symlinked packages
I have a project that uses lerna to manage dependencies in a mono repo application.
Essentially the folder structure looks like:
my-lerna-repo/
package.json
packages/
package-1/
...
1
vote
2
answers
2k
views
Nodejs inspect port 127.0.0.1:9229 timing out
Node.js Version: 12.2.0
OS: Windows 10
Using: VSC
I'm trying to use the debugger through chrome and it keeps giving me this error
$ node inspect app.js
Timeout (2000) waiting for 127.0.0.1:9229 to ...
3
votes
2
answers
2k
views
VSCode JSDoc type checking
In VSCode, if I write this JS file:
/** @type {number} */
let x = 10;
/** @type {string} */
let y = x;
nothing is underlined in red, and the tooltip over y simply gives let y: string. That is not ...
5
votes
2
answers
2k
views
JavaScript in VS Code: why can't I collapse the 'case' code blocks in my 'switch' statements?
After recently migrating to VS Code (MacOS), I've noticed that I can't collapse any case code blocks, something affecting all my switch statements.
Initial format:
switch (name) {
case 'a':
...
...
1
vote
1
answer
2k
views
Adding a custom title bar to Electron project
I am new to electron and node.js so I have decided to build an app that extracts critical information about the OS, CPU, RAM, GPU, etc. (yes like CPU-Z, GPU-Z and Speccy)
I wanted to use the VS Code ...
2
votes
1
answer
41
views
How to use JavaScript in VSCode
I want to know how can I use JavaScript in Microsoft Visual Studio Code.
When I tried to write JavaScript in Microsoft Visual Studio Code, I received no error and also no result of my code, so I need ...