How to open a folder in Visual Studio Code from Linux Terminal Opening files with Visual Studio Code from the Terminal is as easy as that. Type the following and hit Enter to create the file: touch myfile.txtĪfter creating the file, let’s open the file with Visual Studio Code using the Terminal.Ī new Visual Studio Code opens with the file opened for editing. Next, create a file with the name myfile.txt using the touch command: Here, we are navigating inside the Desktop folder of our machine. So, if you have a file with the name myfile.txt, you should type code myfile.txt on the Terminal and hit Enter.įor demonstration, open a new Terminal window and type the following: cd ~/Desktop To open a file in Visual Studio Code from the Terminal, you need to type the keyword code with the name of the file that you want to open. How to open a file in Visual Studio Code from Linux Terminal Let’s open files and directories with Visual Studio Code using the Terminal. Otherwise, you should see a window to set up a new project. Within seconds, you should see a Release Note displayed when opening the code editor the first time. You should see a new Visual Studio Code window open. Open a new Terminal window and type the following: code Opening Visual Studio is as easy as that. Running Visual Studio Code in a Terminal window is as easy as typing code and hitting enter. Now, let’s see how you can run Visual Studio Code from the Linux Terminal How to run Visual Studio Code in Linux Terminal That confirms that Visual Studio Code has been installed on your Debian Linux system. You should see the version of the Visual Studio Code you downloaded earlier displayed on the Terminal. bĬonfirm that you have successfully installed Visual Studio Code by typing: code -version Otherwise, note the downloaded file’s name and specify it after the keyword ‘install.’įor example, if your file name is b, type the following instead: sudo apt install. code*.debĮnsure your file starts with the word ‘code’ for the above code to work. deb file we downloaded: sudo apt install. Type the following to install the Visual Studio Code. Type the following to navigate into the Downloads folder where Visual Studio Code is located: cd ~/DownloadsĪfter navigating into the directory with the Visual Studio Code file, we will use the apt package manager to install the. Opening the Terminal window by pressing CTRL + ALT + T Right-click anywhere on the folder and select Open in Terminal Head over to the location of the downloaded file deb version and download it to the downloads folder or anywhere you can access it.Īfter the download completes, navigate into the Downloads folder or the directory in which you stored your file using the File Manager or the Terminal. Head to the Visual Studio Code download page to download the Visual Studio deb package. How to install Visual Studio Code on Debian Linux (Ubuntu, Kali Linux, Linux Mint) Let me show you how to install Visual Studio Code on Debian Linux that uses the apt package manager. Visual Studio Code installs and works very well on Linux operating systems.īefore we start getting into the details of opening files and directories with Visual Studio Code, we need to install the code editing application first. One would think that Visual Studio Code is only available for Windows users, but you can easily install and start to use Visual Studio Code on Debian operating systems such as Ubuntu, Kali Linux, Linux Mint, e.t.c. Thus, I have to focus on writing code instead of waiting for code editing software to open or hanging in the middle of a debug process. Running the program or opening a directory with the editor happens within seconds. I have tested the performance of Visual Studio Code on a Kali Linux machine, and it works great. Running the program, opening files, editing code, and debugging the code for errors works very smoothly on Debian Linux systems such as Ubuntu. Visual Studio Code works very efficiently and fast on Linux. Therefore, you do not need to switch between different code editing tools when writing a project requiring different types of technologies or programming languages. When it comes to Visual Studio Code, it supports the majority of the web and software development technologies that include JavaScript, Python, Go, HTML, and PHP, among many others. Visual Studio Code is one of the most effective Linux development tools used for code editing by most programmers using Linux as their main operating system.Ī code editing tool is used to write, edit, and debug your code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |