Let's say I type in the following code and format it.  if (condition) { /* Hello! */ }   If this is C# code, it is formatted like this:  if (condition) {     // Hello! }   If it is JavaScript, VSCode formats it like this:  if (condition) {     //...
I'm working on a project in React and ran into a problem that has me stumped.  Whenever I run yarn start I get this error:      TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type   string. Received type undefined   I ha...
I have a project with the following (shortened) structure.    . ??? app ?   ??? app.css ?   ??? app.js ?   ??? home ?       ??? home.css ?       ??? home.html ?       ??? home.js ??? jsconfig.json ??? package.json ??? tsconfig.json ??? ty...
I have a Javascript browser project split over multiple files and can't get ESLint to lint the script tags of my HTML file under the same global scope so that declarations and calls of classes and functions in one file are recognised in another....
This is what I'd like to achieve (t is selected in editor):  Before snippet:  var t = 'Foobar';   After snippet:  var t = 'Foobar'; console.log('t', t);   How can I do that? Here is what I tried to do:  "log_selection&...
I'm getting "[ts] Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning."  I'm new to Angular and I don't how to solv...
This question is particularly pointed at other C# devs coming over to TypeScript in VS Code.  I fell in love with the code completion in VS C#. To illustrate, say I'm trying to write:  console.log('hello')   Using C#, I would have:   type...
When I'm editing the below example HTML page in Visual Studio Code (borrowed from Facebook's React tutorial and slightly edited), if I write any Javascript code in the script block, it is not syntax highlighted. But if I change the script blo...
I've been struggling with VSCode and JSHint to find out a way to get rid of this syntax highlighting. It seems like JSHint is not able to recognise Async/Await syntax.  Here you can find a screenshot of what I'm talking about.     My JSHint v...
I'm using debugging jest with vscode config, here is launch.json configurations:  {     "version": "0.2.0",     "configurations": [         {             "type": "node",             "request": "...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.