Skip to content
Advertisement

Tag: visual-studio-code

Can’t debug current typescript file in VS Code because corresponding JavaScript cannot be found

I am using Visual Studio Code version 1.17, and my objective is to debug the current typescript file. I have a build task running, so I always have a corresponding javascript file like this: I have tried with the following launch.json configuration: But I get the error: Cannot launch program ‘–full-path-to-project–/src/folder1/folder2/main.ts’ because corresponding JavaScript cannot be found. But the corresponding

Visual Studio Code: Run node script on save

I use Visual Studio Code (1.8.1) to write ECMAScript 6 for NodeJS 7.3 (so currently no TypeScript). I want to run the current script with node from the command line (node ${file}) every time the script file is saved. Is this possible? To be clear: NodeJS is not running as server, but used for executing cli scripts. Answer You can

React intellisense in Visual Studio Code

I’m sure I’m missing something simple, but I simply can’t get React.js IntelliSense to work in Visual Studio code. I have done the following: npm install typings ext install Typings Installer in Visual Studio Code ext install Typings in Visual Studio Code typings init in the root directory of my “app” typings install –ambient react-global in the root of my

Run JavaScript in Visual Studio Code

Is there a way to execute JavaScript and display the results using Visual Studio Code? For example, a script file containing: I assume that Node.js would be needed but can’t work out how to do it? By Visual Studio Code I mean the new Code Editor from Microsoft – Not code written using Visual Studio. Answer This solution intends to

Advertisement