visual studio code running executables on current code - visual-studio-code

I'm new to Visual Studio Code and have a few extensions installed, but what I want is to do what I do in notepad++ and set up a command so I can execute the open file (e.g. vbscript). I can do this easily in notepad++ but I've no idea how to do it in VS Code and the internet seems to not have much help either.
If it is possible, can it be done like the Python vs code extension and have the output window in a pane below the code?
thanks.

There is actually an Extension that will run a number of different languages for you.
Install the Code Runner Extension
Open the code file in Text Editor, then use shortcut Ctrl+Alt+N, or press F1 and then select/type Run Code, the code will run and the output will be shown in the Output Window.

Related

VSCode opening output tab automatically when I typing code

during typying code and auto save in vscode, output tab automatically running. It's so uncomfortable.
is there are anyone who give me some help?
I've been trying to my self but I didn't find solution
This happens when code-runner extension is installed in vs code.
Disable code-runner extension and reload the vs code.

Visual Studio Code is not taking input from keyboard when I use C++ or Java

While taking input from the user using C++/Java, program is running successful and Visual Studio Code does asks user to input, but when I try to enter anything like a number or a character, it takes no input.
Your program is running in Output tab, therefore it is not possible to take input. Just enable Run in terminal in Visual Studio Code Settings.
Settings (ctrl+,) -> Search settings, look for code runner: run in terminal (check)
Note: It is supposed that you have Code Runner extension installed.
Go to extensions (Ctrl+shift+X) and install code Runner.
Go to Settings. (File ---> Preferences --->Settings)
Search Code Runner, then check
code runner: run in terminal

Visual Studio Code Love2D support extension detecting love.app as a directory

I have just started with löve because of an internet course I'm on, and I'm using Visual studio code as my editor. The course recommends that I use the "Love2D Support" extension with Visual Studio. It allows me to run the code directly from VS by pressing Command + L.
Although when I do it, VS outputs me this error:
The setting specified in pixelbyte.love2d.path must be an executable file, not a directory. Check your settings.
The path I have input in the settings is /Users/My_Username/Desktop/love.app
I am 100% sure that it is the correct directory. What is the problem?
Thanks for answering!
The actual executable file in Mac is /Applications/love.app/Contents/MacOS/love so put this in your pixelbyte.love2d.path command in vscode and you are good to go.

How do I stop Visual Studio Code from displaying my file directory?

Hi I'm trying to learn Python and this is the first time I use Visual Studio Code so I'm a complete beginner.
In the lessons that I'm following, the output of the code is visible in debug console, like the screenshot below:
In my installed version of Visual Studio Code (Win 7 32bits) I get all the output in the terminal section and it also shows my file directory, which I find distracting.
I'd like to set up Visual Studio Code so I get roughly the same results as the first picture, without my file directory being printed out once for every line of code... Is that possible?

Open file from integrated terminal in VS Code

I have VS Code setup with WSL on my Windows 10 machine. I am trying to find the command I can use to open an existing file from the integrated terminal in the current VS Code window.
I tried code filename, which launches a new VS Code window. I tried with code -r filename, but it also launches a new window.
Is there a way to quickly open a file when I'm focussed on the terminal?
As of version 1.43.1, this appears to now work as expected, without additional add ons.