{"id":516,"date":"2024-05-07T13:29:28","date_gmt":"2024-05-07T13:29:28","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2024\/05\/07\/9292934-how-to-use-the-vs-code-vps-template-at-hostinger\/"},"modified":"2025-08-27T06:45:55","modified_gmt":"2025-08-27T06:45:55","slug":"9292934-how-to-use-the-vs-code-vps-template-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/9292934-how-to-use-the-vs-code-vps-template-at-hostinger\/","title":{"rendered":"How to Use the VS Code VPS Template at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">The <b><a href=\"\/support\/4965922-how-to-change-the-operating-system-of-vps\" target=\"_blank\" class=\"intercom-content-link\">Ubuntu 24.04 with VS Code<\/a><\/b> VPS template on Hostinger provides a pre-configured setup of a <b>Visual Studio Code Server<\/b>. This allows you to access a fully-featured VS Code environment from any device via your web browser. With this template, VS Code Server is already installed, and you can access it via HTTPS using a secure password provided during the initial setup. This guide will walk you through accessing and configuring your VS Code environment.<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">If you don&rsquo;t have a VPS yet, check the available options here: <b><a href=\"https:\/\/www.hostinger.com\/vps-hosting\" target=\"_blank\" class=\"intercom-content-link\">VPS Hosting<\/a> &#128640;<\/b><\/p>\n<\/div><p class=\"no-margin\">\n<\/p><h2 id=\"h_a1765d59c7\">Accessing the VS Code Server<\/h2><p class=\"no-margin\">Open your web browser and navigate to:<\/p><pre><code>https:\/\/[your-vps-ip]<\/code><\/pre><p class=\"no-margin\">Replacing <b>[your-vps-ip]<\/b> with the <b><a href=\"\/support\/5139756-how-to-find-your-vps-ip-address\" target=\"_blank\" class=\"intercom-content-link\">actual IP address of your VPS<\/a>.<\/b><\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Enter the password provided during the installation process to access the VS Code Server:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2024\/05\/75a20de1-60cc-4d67-a4cd-9ad158f1f472.jpg\" width=\"550\"><\/div><p class=\"no-margin\">\n<\/p><h2 id=\"h_cf66a66a84\">Setting Up Your Development Environment<\/h2><p class=\"no-margin\">The VS Code Server allows you to <b>install extensions<\/b> as in the desktop version. Click on the <b>Extensions<\/b> icon in the sidebar to access and install the necessary extensions for your development:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2024\/05\/367a4e13-dde1-419a-a84b-2fd5198a5eb3.jpg\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_8eae5632ec\">Configuring Your Workspace<\/h2><p class=\"no-margin\">Use the <b>integrated Git tool<\/b> to manage your code repositories. Add a repository by clicking on the Source Control icon in the sidebar:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2024\/05\/3516a737-b671-4566-b27b-a2980c474364.jpg\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">To access the terminal directly within the VS Code Server interface, navigate to Terminal <b>&rarr;<\/b> <b>New Terminal:<\/b><\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2024\/05\/91d8c369-b2a5-476c-ab64-3e5ae90d7dd0.jpg\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">If you have existing settings or extensions, consider <b>enabling Settings Sync<\/b> to synchronize them across your VS Code instances.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_5ed3757f15\">Securing Your VS Code Server<\/h2><p class=\"no-margin\">Ensure your firewall settings only allow trusted IPs to access the server. Use a <b><a href=\"\/support\/8172641-how-to-use-a-managed-vps-firewall\" target=\"_blank\" class=\"intercom-content-link\">firewall inside the VPS Dashboard<\/a><\/b> or an <b>ufw<\/b> to configure your firewall rules.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">That&rsquo;s all, your VS Code server is set up and ready!<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\"><b>Additional Resources<\/b><\/p><ul>\n<li>\n<p class=\"no-margin\">For more advanced configurations and features, refer to the <b><a href=\"https:\/\/coder.com\/docs\/code-server\/latest\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">coder.com documentation<\/a><\/b><\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Getting started with the VS Code VPS template<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[206],"tags":[],"class_list":["post-516","post","type-post","status-publish","format-standard","hentry","category-vps-os-and-templates"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/9292934-how-to-use-the-vs-code-vps-template-at-hostinger\/","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/516","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=516"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/516\/revisions"}],"predecessor-version":[{"id":2465,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/516\/revisions\/2465"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=516"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}