{"id":114994,"date":"2024-09-02T10:40:42","date_gmt":"2024-09-02T10:40:42","guid":{"rendered":"\/tutorials\/?p=114994"},"modified":"2026-03-10T09:27:21","modified_gmt":"2026-03-10T09:27:21","slug":"how-to-install-vs-code-on-ubuntu","status":"publish","type":"post","link":"\/ca\/tutorials\/how-to-install-vs-code-on-ubuntu","title":{"rendered":"How to install Visual Studio Code on Ubuntu"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><p><strong>Visual Studio Code<\/strong> (VS Code) is a popular open-source code editor developed by Microsoft. VS Code Server, an extension of this software, lets you access the editor through a web browser, making it an ideal choice for remote development.<\/p><p>Similar to the desktop version, VS Code Server offers features like syntax highlighting, integrated debugging, embedded Git control, and support for various programming languages.<\/p><p>In this article, you&rsquo;ll learn how to install VS Code Server on an Ubuntu <strong>virtual private server<\/strong> (VPS). By the end of this guide, you&rsquo;ll be able to manage and edit your code remotely with a full-featured, browser-accessible code editor.<\/p><p>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-prerequisites\">Prerequisites<\/h2><p>Before installing VS Code Server on Ubuntu, ensure your server meets the following requirements.<\/p><p>First, it should run a <strong>long-term support<\/strong> (LTS) version of Ubuntu, such as Ubuntu <strong>20.04<\/strong> or later. Your VPS should also have at least <strong>1 GB<\/strong> of RAM and <strong>200 MB<\/strong> of available disk space to accommodate the installation and operation.<\/p><p>Next, use a stable internet connection to download the necessary installation files and dependencies. Additionally, you&rsquo;ll need administrative or <strong>sudo<\/strong> access on your VPS to install the software.<\/p><h2 class=\"wp-block-heading\" id=\"h-installing-vs-code-on-ubuntu-methods\">Installing VS Code on Ubuntu methods<\/h2><p>There are several ways to install VS Code Server on Ubuntu, either automatically via a template or manually using <a href=\"\/ca\/tutorials\/linux-commands\">Linux commands<\/a>. Choose one that best suits your VPS setup and technical expertise. Please note that for each method, we use Ubuntu <strong>24.04<\/strong>.<\/p><h3 class=\"wp-block-heading\" id=\"h-installing-using-the-hostinger-vps-template\">Installing using the Hostinger VPS template<\/h3><p>Using Hostinger&rsquo;s VPS template is the simplest way to install VS Code Server on Ubuntu. Available on all our <a href=\"\/ca\/vps-hosting\">VPS hosting plans<\/a>, this template lets you run the code editor with just a few clicks.<\/p><p>It also comes with a preconfigured environment, so you don&rsquo;t need to manually set up the necessary dependencies and components, which can be error-prone for beginners.<\/p><p>Follow these steps to install the VS Code Server template on Hostinger&rsquo;s VPS:<\/p><ol class=\"wp-block-list\">\n<li>Log in to hPanel with your Hostinger account and access <strong>VPS &rarr; Manage<\/strong>.<\/li>\n\n\n\n<li>In the left sidebar, go to <strong>OS &amp; Panel &rarr; Operating System<\/strong>.<\/li>\n\n\n\n<li>Select the <strong>Application<\/strong> tab and click<strong> VS Code<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e2028890889\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"324\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/09\/vs-code-vps-template-on-hpanel-operating-system-configuration-page.png\" alt=\"The VS Code VPS template on hPanel's operating system configuration page\" class=\"wp-image-126025\"  sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"4\" class=\"wp-block-list\">\n<li>Hit <strong>Change OS<\/strong> and follow the on-screen prompts to set up a new password for VS Code Server.<\/li>\n<\/ol><p>Wait for the installation process to complete, which should take about five minutes. Once done, go to the <strong>VPS Overview <\/strong>page and click the <strong>Manage App<\/strong> to access the editor. Enter the password you set up earlier.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e2028896748\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"228\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/09\/the-vs-code-access-button-on-hpanel-vps-overview-menu-1.png\" alt=\"The VS Code dashboard access button on hPanel's VPS Overview page\" class=\"wp-image-126028\"  sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>After the setup, you can start customizing your environment, installing third-party extensions, and managing your code repositories. Check out our guide on <a href=\"https:\/\/support.hostinger.com\/en\/articles\/9292934-how-to-use-the-vs-code-vps-template\" target=\"_blank\" rel=\"noopener\">using the VS Code VPS template<\/a> to explore all available features fully.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e202889a0bc\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"553\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/09\/vs-code-server-main-interface-1024x553.png\" alt=\"VS Code Server's main interface\" class=\"wp-image-114999\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-vps-hosting\" href=\"\/ca\/vps-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner-1024x300.png\" alt=\"\" class=\"wp-image-77934\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\" id=\"h-installing-through-the-install-sh-script\">Installing through the install.sh script<\/h3><p>You can also use the <strong>install.sh<\/strong> script to install VS Code Server on your Ubuntu VPS. This script automatically detects your system&rsquo;s package manager and installs the appropriate package, minimizing potential compatibility issues.<\/p><p>Here&rsquo;s how:<\/p><ol class=\"wp-block-list\">\n<li>Log in to your server via a terminal or SSH client application like <a href=\"\/ca\/tutorials\/how-to-use-putty-ssh\">PuTTY<\/a>. For Hostinger VPS customers, find your credentials by navigating to the <strong>VPS details<\/strong> section at the bottom of your VPS <strong>Overview <\/strong>page.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e20288a1792\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"1041\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/vps-ssh-username-and-ip-address-on-hpanel.png\" alt=\"SSH access credentials in the VPS details section of hPanel's VPS Overview page\" class=\"wp-image-125811\"  sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"2\" class=\"wp-block-list\">\n<li>Run the following <a href=\"\/ca\/tutorials\/curl-command-with-examples-linux\">curl command<\/a> to begin the installation:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">curl -fsSL https:\/\/code-server.dev\/install.sh | sh<\/pre><p>You can also customize the command. For example, to install a specific version instead of the latest release, execute:<\/p><pre class=\"wp-block-preformatted\">curl -fsSL https:\/\/code-server.dev\/install.sh | sh -s -- --version=X.X.X<\/pre><p>Replace <strong>X.X.X <\/strong>with the specific version you want to use.<\/p><ol start=\"3\" class=\"wp-block-list\">\n<li>Open the configuration file with the <a href=\"\/ca\/tutorials\/how-to-install-and-use-nano-text-editor\">nano text editor<\/a> to edit the bind address and retrieve the password:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">nano ~\/.config\/code-server\/config.yaml<\/pre><p>Find the line that starts with <strong>bind-addr:<\/strong> and update it to match your server&rsquo;s IP address:<\/p><pre class=\"wp-block-preformatted\">bind-addr: your_vps_ip:8080<\/pre><p>While in the file, copy the password for use when logging in.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e20288a558b\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"171\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/09\/terminal-nano-config-yaml-1024x171.png\" alt=\"The bind address and password information on VS Code Server's configuration file\" class=\"wp-image-115002\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>Save your changes and exit <strong>nano <\/strong>by pressing <strong>Ctrl + X &rarr; Y &rarr; Enter<\/strong>.<\/p><ol start=\"4\" class=\"wp-block-list\">\n<li>Start VS Code Server by running:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">code-server<\/pre><ol start=\"5\" class=\"wp-block-list\">\n<li>Open your web browser and go to <strong>http:\/\/your_vps_ip:8080<\/strong>. Log in with the same password from the configuration file.<\/li>\n<\/ol><h3 class=\"wp-block-heading\" id=\"h-installing-via-a-deb-package\">Installing via a .deb package<\/h3><p>Manually configuring VS Code Server via a <strong>.deb<\/strong> package provides more control over the installation process. With this method, you can choose the software version that best suits your needs and ensure everything is set up exactly as you want.<\/p><p>Here are the instructions:<\/p><ol class=\"wp-block-list\">\n<li>Download the specific <strong>.deb<\/strong> package from the <a href=\"https:\/\/github.com\/coder\/code-server\/releases\" target=\"_blank\" rel=\"noopener\">VS Code Server GitHub releases page<\/a>. Replace <strong>$VERSION<\/strong> with the desired release:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">curl -fOL https:\/\/github.com\/coder\/code-server\/releases\/download\/v$VERSION\/code-server_$VERSION_amd64.deb<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>Install the package using the <strong>dpkg<\/strong> command:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo dpkg -i code-server_${VERSION}_amd64.deb<\/pre><p>If any dependency issues arise during the installation, resolve them by running:<\/p><pre class=\"wp-block-preformatted\">sudo apt --fix-broken install<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li>Edit the configuration file to set the correct bind address and note down the password, similar to the previous method:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">nano ~\/.config\/code-server\/config.yaml<\/pre><ol start=\"4\" class=\"wp-block-list\">\n<li>Enable and start the VS Code Server service to ensure it starts automatically whenever your VPS reboots:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo systemctl enable --now code-server@$USER<\/pre><ol start=\"5\" class=\"wp-block-list\">\n<li>To check that VS Code Server is running, use the following command:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">systemctl status code-server@$USER<\/pre><p>If the service is active, access VS Code Server via <strong>http:\/\/your_vps_ip:8080<\/strong>.<\/p><h3 class=\"wp-block-heading\" id=\"h-installing-using-a-standalone-release\">Installing using a standalone release<\/h3><p>The standalone release method lets you set up VS Code Server without relying on the system&rsquo;s package manager. It&rsquo;s ideal for advanced users who require custom environments or where you need to isolate the installation.<\/p><p>Here&rsquo;s a guide to installing VS Code Server through a standalone release:<\/p><ol class=\"wp-block-list\">\n<li>Download the latest standalone release <strong>.tar.gz<\/strong> archive from the official GitHub repository:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">curl -fL https:\/\/github.com\/coder\/code-server\/releases\/download\/v$VERSION\/code-server-$VERSION-linux-amd64.tar.gz -o code-server-$VERSION-linux-amd64.tar.gz<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>Extract the archive contents to your preferred directory using the <a href=\"\/ca\/tutorials\/linux-tar-command-with-examples\">tar command<\/a>. For example, extract to <strong>~\/.local\/lib<\/strong>:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">mkdir -p ~\/.local\/lib ~\/.local\/bin<br><br>tar -xzvf code-server-$VERSION-linux-amd64.tar.gz -C ~\/.local\/lib<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li>Rename the directory for easier access:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">mv ~\/.local\/lib\/code-server-$VERSION-linux-amd64 ~\/.local\/lib\/code-server-$VERSION<\/pre><ol start=\"4\" class=\"wp-block-list\">\n<li><a href=\"\/ca\/tutorials\/how-to-create-symbolic-links-in-linux\">Create a symbolic link<\/a> in your <strong>~\/.local\/bin<\/strong> directory to make it easier to run the <strong>code-server<\/strong> command from anywhere:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">ln -s ~\/.local\/lib\/code-server-$VERSION\/bin\/code-server ~\/.local\/bin\/code-server<\/pre><ol start=\"5\" class=\"wp-block-list\">\n<li>Add <strong>code-server<\/strong> to your system <strong>PATH<\/strong>. This allows you to run the command without needing to specify the full path every time:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">export PATH=\"~\/.local\/bin:$PATH\"<\/pre><ol start=\"6\" class=\"wp-block-list\">\n<li>To make this change permanent, add the export command to your shell&rsquo;s startup file, such as <strong>.bashrc<\/strong>:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">echo 'export PATH=\"~\/.local\/bin:$PATH\"' &gt;&gt; ~\/.bashrc<br><br>source ~\/.bashrc<\/pre><ol start=\"7\" class=\"wp-block-list\">\n<li>Adjust the bind address with your server&rsquo;s IP and copy the password for later use:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">nano ~\/.config\/code-server\/config.yaml<\/pre><ol start=\"8\" class=\"wp-block-list\">\n<li>Start VS Code Server by executing the following:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">code-server<\/pre><p>After that, access your VS Code Server by opening your web browser.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-uninstall-visual-studio-code-on-ubuntu\">How to uninstall Visual Studio Code on Ubuntu<\/h2><p>You might want to uninstall VS Code Server from Ubuntu for several reasons, such as switching to another code editor, freeing up disk space, or reconfiguring your server environment.<\/p><p>The removal process varies depending on how it was installed.<\/p><h3 class=\"wp-block-heading\" id=\"h-hostinger-vps-template\">Hostinger VPS template<\/h3><p>If you installed VS Code Server using Hostinger&rsquo;s VPS template, you can uninstall it by switching to another template.<\/p><p>Select a different template or <a href=\"\/ca\/tutorials\/best-linux-distros\">Linux distribution<\/a> on the same <strong>Operating System<\/strong> page. Then, follow the on-screen prompts to complete the change. This will automatically remove the existing VS Code Server setup.<\/p><p><div><p class=\"important\"> <strong>Important!<\/strong> Make sure to <a href=\"https:\/\/support.hostinger.com\/en\/articles\/1583232-how-to-back-up-or-restore-a-vps\" target=\"_blank\" rel=\"noopener\">back up your server data<\/a> before switching templates, as this process will remove all existing data on the server.<\/p><\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-install-sh-script\">install.sh script<\/h3><p>If you used the <strong>install.sh<\/strong> script to install VS Code Server, first remove its installation files:<\/p><pre class=\"wp-block-preformatted\">rm -rf ~\/.local\/lib\/code-server-*<\/pre><p>Next, delete any remaining configuration files on your system:<\/p><pre class=\"wp-block-preformatted\">rm -rf ~\/.config\/code-server<\/pre><h3 class=\"wp-block-heading\" id=\"h-deb-package\">.deb package<\/h3><p>For users who configured VS Code Server via a <strong>.deb<\/strong> package, use <strong>APT<\/strong> to uninstall the software:<\/p><pre class=\"wp-block-preformatted\">sudo apt remove code-server<\/pre><p>You can also clean up any residual configuration files with:<\/p><pre class=\"wp-block-preformatted\">sudo apt autoremove<\/pre><h3 class=\"wp-block-heading\" id=\"h-standalone-release\">Standalone release<\/h3><p>For installations done using a standalone release, you need to remove the installation directory manually:<\/p><pre class=\"wp-block-preformatted\">rm -rf ~\/.local\/lib\/code-server-*<\/pre><p>If you created a symbolic link for easier access to the <strong>code-server<\/strong> command, delete it:<\/p><pre class=\"wp-block-preformatted\">rm ~\/.local\/bin\/code-server<\/pre><p>Remove any remaining user data, settings, or configuration files:<\/p><pre class=\"wp-block-preformatted\">rm -rf ~\/.local\/share\/code-server ~\/.config\/code-server<\/pre><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>This guide has covered different methods for installing VS Code Server on Ubuntu, including using Hostinger&rsquo;s VPS template and the <strong>install.sh<\/strong> script. Each technique offers further levels of control and flexibility, so choose the one that best fits your needs.<\/p><p>Be sure to keep VS Code Server up to date to access the latest features, performance boosts, and security improvements. We also recommend trying out extensions to enhance your coding experience further.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-install-vs-code-on-ubuntu-faq\">How to install VS Code on Ubuntu FAQ<\/h2><div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1725273520022\"><h3 class=\"schema-faq-question\">What are the system requirements for installing Visual Studio Code?<\/h3> <p class=\"schema-faq-answer\">To install Visual Studio Code on Ubuntu, you&rsquo;ll need a system running Ubuntu <strong>20.04<\/strong> or later, with at least <strong>1<\/strong> <strong>GB<\/strong> of RAM and <strong>200 MB<\/strong> of available storage. A stable internet connection is also required to download the installation files.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1725273525841\"><h3 class=\"schema-faq-question\">Is there a package repository for VS Code?<\/h3> <p class=\"schema-faq-answer\">Yes, the VS Code desktop version has an official Microsoft <strong>APT<\/strong> repository. You can also install VS Code Server on VPS by downloading a <strong>.deb<\/strong> package using the <strong>curl<\/strong> command.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1725273536142\"><h3 class=\"schema-faq-question\">Do I have to uninstall any other text editors before installing VS Code?<\/h3> <p class=\"schema-faq-answer\">No, you don&rsquo;t need to uninstall other text editors before installing VS Code. Multiple code editors can coexist on the same system without issues, and you can easily switch between them as needed.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Visual Studio Code (VS Code) is a popular open-source code editor developed by Microsoft. VS Code Server, an extension of this software, lets you access the editor through a web browser, making it an ideal choice for remote development. Similar to the desktop version, VS Code Server offers features like syntax highlighting, integrated debugging, embedded [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ca\/tutorials\/how-to-install-vs-code-on-ubuntu\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":411,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to install VS Code on Ubuntu","rank_math_description":"Read our guide on installing Visual Studio Code on Ubuntu, covering methods like APT repository and Hostinger VPS template, plus more.","rank_math_focus_keyword":"how to install vs code on ubuntu","footnotes":""},"categories":[22701,22699],"tags":[],"class_list":["post-114994","post","type-post","status-publish","format-standard","hentry","category-pre-installed-applications","category-vps"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-install-vs-code-on-ubuntu","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/comment-installer-vs-code-sur-ubuntu","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/como-instalar-visual-studio-code-en-ubuntu","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-install-vs-code-on-ubuntu","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-install-vs-code-on-ubuntu","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-install-vs-code-on-ubuntu","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-install-vs-code-on-ubuntu","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-install-vs-code-on-ubuntu","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/como-instalar-visual-studio-code-en-ubuntu","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/como-instalar-visual-studio-code-en-ubuntu","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/como-instalar-visual-studio-code-en-ubuntu","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-install-vs-code-on-ubuntu","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-install-vs-code-on-ubuntu","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/114994","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/users\/411"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/comments?post=114994"}],"version-history":[{"count":7,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/114994\/revisions"}],"predecessor-version":[{"id":137483,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/114994\/revisions\/137483"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/media?parent=114994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/categories?post=114994"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/tags?post=114994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}