{"id":13464,"date":"2024-08-09T10:49:36","date_gmt":"2024-08-09T10:49:36","guid":{"rendered":"https:\/\/www.bodhost.com\/kb\/?p=13464"},"modified":"2026-02-26T14:02:10","modified_gmt":"2026-02-26T14:02:10","slug":"how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\/","title":{"rendered":"Install and Uninstall VS Code Using APT on Ubuntu"},"content":{"rendered":"<p>This guide illustrates how to install and uninstall VS code using APT on Ubuntu. Visual Studio Code is a free and open-source code editor, usually known as VS Code. It offers features intended to improve productivity and make the coding experience worth it.<\/p>\n<p>Follow the guide:<\/p>\n<ol>\n<li>Installing VS Code Using APT on Ubuntu<br \/>\nIf you wish to use APT for package management, you can install VS Code with these steps:<\/p>\n<ol>\n<li>Open the terminal on your Ubuntu system.<\/li>\n<li>Run the subsequent command to add the Microsoft repository:\n<pre>sudo add-apt-repository \u201cdeb [arch=amd64] \r\nhttps:\/\/packages.microsoft.com\/repos\/vscode stable main\u201d<\/pre>\n<\/li>\n<li>Update your package list once again using the following command:\n<pre>sudo apt update<\/pre>\n<\/li>\n<li>To install Visual Studio Code:\n<pre>sudo apt install code<\/pre>\n<\/li>\n<li>To open Visual Studio Code, type:\n<pre>code<\/pre>\n<\/li>\n<\/ol>\n<\/li>\n<li>Uninstalling Visual Studio Code on Ubuntu<br \/>\nIf you ever want to take Visual Studio Code out of your Ubuntu system, it is really simple to do so:<\/p>\n<ol>\n<li>Launch the terminal once again.<\/li>\n<li>Add the following command to uninstall VS Code:\n<pre>sudo apt remove --purge code<\/pre>\n<\/li>\n<li>To eliminate any residual configuration files, use:\n<pre>sudo apt autoremove<\/pre>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>In this manner, you can use APT on Ubuntu to install and uninstall Visual Studio Code. Please do not hesitate to contact our support staff as soon as possible if you run into any problems.<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/how-to-install-python-3-on-ubuntu-20-04-or-22-04\/\" target=\"_blank\" rel=\"noopener\">How to Install Python 3 on Ubuntu 20.04 or 22.04<\/a>: Learn step-by-step instructions to install Python 3 on your Ubuntu system.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide illustrates how to install and uninstall VS code using APT on Ubuntu. Visual Studio Code is a free and open-source code editor, usually known as VS Code. It&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":21,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[666],"tags":[1557],"class_list":["post-13464","post","type-post","status-publish","format-standard","hentry","category-general","tag-install-and-uninstall-vs-code-using-apt-on-ubuntu"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install and Uninstall VS Code Using APT on Ubuntu<\/title>\n<meta name=\"description\" content=\"This article explains how to install and uninstall VS code using APT on Ubuntu. Visual Studio Code is a free and open-source code editor.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bodhost.com\/kb\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install and Uninstall VS Code Using APT on Ubuntu\" \/>\n<meta property=\"og:description\" content=\"This article explains how to install and uninstall VS code using APT on Ubuntu. Visual Studio Code is a free and open-source code editor.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2024-08-09T10:49:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:02:10+00:00\" \/>\n<meta name=\"author\" content=\"Serena\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Serena\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\\\/\"},\"author\":{\"name\":\"Serena\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/ffd3f118493c99471ae5bd4790a55830\"},\"headline\":\"Install and Uninstall VS Code Using APT on Ubuntu\",\"datePublished\":\"2024-08-09T10:49:36+00:00\",\"dateModified\":\"2026-02-26T14:02:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\\\/\"},\"wordCount\":215,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"keywords\":[\"install and uninstall VS code using APT on Ubuntu\"],\"articleSection\":[\"General Discussion\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\\\/\",\"name\":\"How to Install and Uninstall VS Code Using APT on Ubuntu\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2024-08-09T10:49:36+00:00\",\"dateModified\":\"2026-02-26T14:02:10+00:00\",\"description\":\"This article explains how to install and uninstall VS code using APT on Ubuntu. Visual Studio Code is a free and open-source code editor.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"General Discussion\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/general\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install and Uninstall VS Code Using APT on Ubuntu\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/ffd3f118493c99471ae5bd4790a55830\",\"name\":\"Serena\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g\",\"caption\":\"Serena\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/seema\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install and Uninstall VS Code Using APT on Ubuntu","description":"This article explains how to install and uninstall VS code using APT on Ubuntu. Visual Studio Code is a free and open-source code editor.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bodhost.com\/kb\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\/","og_locale":"en_US","og_type":"article","og_title":"How to Install and Uninstall VS Code Using APT on Ubuntu","og_description":"This article explains how to install and uninstall VS code using APT on Ubuntu. Visual Studio Code is a free and open-source code editor.","og_url":"https:\/\/www.bodhost.com\/kb\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2024-08-09T10:49:36+00:00","article_modified_time":"2026-02-26T14:02:10+00:00","author":"Serena","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Serena","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\/"},"author":{"name":"Serena","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/ffd3f118493c99471ae5bd4790a55830"},"headline":"Install and Uninstall VS Code Using APT on Ubuntu","datePublished":"2024-08-09T10:49:36+00:00","dateModified":"2026-02-26T14:02:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\/"},"wordCount":215,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"keywords":["install and uninstall VS code using APT on Ubuntu"],"articleSection":["General Discussion"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\/","url":"https:\/\/www.bodhost.com\/kb\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\/","name":"How to Install and Uninstall VS Code Using APT on Ubuntu","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"datePublished":"2024-08-09T10:49:36+00:00","dateModified":"2026-02-26T14:02:10+00:00","description":"This article explains how to install and uninstall VS code using APT on Ubuntu. Visual Studio Code is a free and open-source code editor.","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/how-to-install-and-uninstall-vs-code-using-apt-on-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"General Discussion","item":"https:\/\/www.bodhost.com\/kb\/category\/general\/"},{"@type":"ListItem","position":2,"name":"Install and Uninstall VS Code Using APT on Ubuntu"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/ffd3f118493c99471ae5bd4790a55830","name":"Serena","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g","caption":"Serena"},"url":"https:\/\/www.bodhost.com\/kb\/author\/seema\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/13464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=13464"}],"version-history":[{"count":5,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/13464\/revisions"}],"predecessor-version":[{"id":13469,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/13464\/revisions\/13469"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=13464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=13464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=13464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}