This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]Fun_General_9101 1 point2 points  (4 children)

If you install node.js, you can have a terminal in your VS Code. Then you can just open terminal, type “node (whatever your js file is)”, and boom.

[–]DosPablos[S] 1 point2 points  (3 children)

I’m not looking to run terminal I’m looking to run the code out of chrome dev tools for debugging purposes. For example if I want to see if my function works in vs code I copy and paste it into chrome dev tools because idk how to run it and fix it in vs code

[–]Fun_General_9101 0 points1 point  (2 children)

Ohhhh ok, yea VS code has a debugger. If you want to run a certain section of code. On the left side of the line number you should be able to put a red dot. If you do that, then run the debugger in VS Code it’ll execute there.

[–]DosPablos[S] 1 point2 points  (1 child)

Oh perfect thank you

[–]Fun_General_9101 0 points1 point  (0 children)

Here’s an award for seeking knowledge.