Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

execute javascript (node.js) code right from Visual Studio in REPL manner

I want to run some javascript code (unit and interaction tests) right in visual studio and be able to see console output. Is it possible to do that with VS???

like image 784
silent_coder Avatar asked Feb 13 '26 09:02

silent_coder


2 Answers

Node.js Tools for Visual Studio has a REPL for node.js that can be used for such things.

like image 109
Pavel Minaev Avatar answered Feb 14 '26 21:02

Pavel Minaev


I love the Interactive Window for Visual Studio (and 2017) but lately I have been starting to use Visual Studio Code. I really like it but the Interactive Window (REPL) is missing.

I need that. So I tried several extensions but none of them was as good as Node.js Tools for VS. The solution was to make one my self, you may need NodeJs 8+ to use Node.js REPL for Visual Studio Code.

Preview of Node.js REPL for VS Code

enter image description here

like image 21
Lostfields Avatar answered Feb 14 '26 22:02

Lostfields



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!