{"id":587,"date":"2021-12-08T11:38:14","date_gmt":"2021-12-08T10:38:14","guid":{"rendered":"https:\/\/ubuntu.dirkschmidtke.de\/?post_type=portfolio&#038;p=587"},"modified":"2025-01-01T19:30:51","modified_gmt":"2025-01-01T18:30:51","slug":"visual-studio-code","status":"publish","type":"portfolio","link":"https:\/\/ubuntu.dirkschmidtke.de\/en\/portfolio\/visual-studio-code\/","title":{"rendered":"Visual Studio Code"},"content":{"rendered":"<p><a href=\"https:\/\/code.visualstudio.com\/\" target=\"_blank\" rel=\"noopener\">VS Code<\/a> is considered the most popular free editor for programmers and has beaten out competitors like <a href=\"https:\/\/ubuntu.dirkschmidtke.de\/portfolio\/atom-editor\/\">Atom<\/a>. The application is offered by <a href=\"https:\/\/www.microsoft.com\" target=\"_blank\" rel=\"noopener\">Microsoft<\/a> free of charge for all platforms (Linux, Mac and of course Windows), but should not be confused with Microsoft&#8217;s proprietary IDE (development environment) Visual Studio, despite the similarity in name.<\/p>\n<p>VS Code does not allow you to create <em>&#8220;projects&#8221;<\/em> as in full-blown IDEs &#8211; the editor always works file\/folder-based. Nevertheless, the program can be used like an IDE. First, you open a folder or clone a repository &#8211; thanks to the Git integration &#8211; via the <em>explorer<\/em> icon in the left, vertical menu. Then you can add more folders to your project which is not a project, but a <em>Workspace<\/em> according to VS Code terminology. When you exit the program, VS Code remembers which files were open and restores this <em>workspace<\/em> exactly the same way the next time you start the program.<\/p>\n<p>The great strength of VS Code is the large number of extensions that are made available via a marketplace. This allows VS Code to become a serious programming tool for all conceivable programming languages. Via the <em>extensions<\/em> icon already existing extensions may be configured and new ones installed.<\/p>\n<h3>Licensing and backdoor<\/h3>\n<p>Microsoft would not be Microsoft, however, if the company did not include a backdoor from the point of view of open source supporters. For example, the source code of VS Code is open under an MIT license; however, the packages that Microsoft builds for Debian and Ubuntu, among others, are under a proprietary license and collect telemetry data without demand. At least users can prevent this by disabling all or part of this behavior in the <em>Settings<\/em>.<\/p>\n<h3>How to configure VS Code<\/h3>\n<p>The settings of VS Code (and its plugins as well) may be found in the menue at <em>File &gt; Preferences &gt; Settings<\/em> or briefly by pressing STRG + comma key. To change the telemetry settings as described above, press CTRL + Comma, then search for \u201cTelemetry\u201d and &#8211; if there are several hits &#8211; make sure to select the telemetry entry valid for the entire application.<\/p>\n<h3>Installation<\/h3>\n<p>The easiest installation is actually offered by Microsoft itself with the mentioned backdoor: simply <a href=\"https:\/\/code.visualstudio.com\/download\" target=\"_blank\" rel=\"noopener\">download the latest deb package from Microsoft<\/a> and then install it:<\/p>\n<blockquote>\n<pre>sudo dpkg -i ~\/Downloads\/code_*.deb<\/pre>\n<\/blockquote>\n<p>Microsoft&#8217;s package source is also set up at the same time, so that future updates of VS Code &#8211; the program is updated quite frequently &#8211; will be imported by the package management. To set up the package source manually, follow the detailed instructions on the page <a href=\"https:\/\/code.visualstudio.com\/docs\/setup\/linux\" target=\"_blank\" rel=\"noopener\">Visual Studio Code on Linux<\/a> If you don&#8217;t trust Microsoft <a href=\"https:\/\/github.com\/Microsoft\/vscode\" target=\"_blank\" rel=\"noopener\">&#8216;<\/a> s pre-built packages, you can build the package yourself from <a href=\"https:\/\/github.com\/Microsoft\/vscode\" target=\"_blank\" rel=\"noopener\">Microsoft&#8217;s open source code<\/a>, or more simply: use the packages already built under the name Vscodium from <a href=\"https:\/\/gitlab.com\/paulcarroty\/vscodium-deb-rpm-repo\" target=\"_blank\" rel=\"noopener\">Paul Carroty<\/a> <a href=\"https:\/\/github.com\/Microsoft\/vscode\" target=\"_blank\" rel=\"noopener\">&#8216;s<\/a> <a href=\"https:\/\/gitlab.com\/paulcarroty\/vscodium-deb-rpm-repo\" target=\"_blank\" rel=\"noopener\">repository<\/a>:<\/p>\n<blockquote>\n<pre>wget -qO - https:\/\/gitlab.com\/paulcarroty\/vscodium-deb-rpm-repo\/raw\/master\/pub.gpg | gpg --dearmor | sudo dd of=\/usr\/share\/keyrings\/vscodium-archive-keyring.gpg\r\necho 'deb [ signed-by=\/usr\/share\/keyrings\/vscodium-archive-keyring.gpg ] https:\/\/download.vscodium.com\/debs vscodium main' | sudo tee \/etc\/apt\/sources.list.d\/vscodium.list\r\nsudo apt update &amp;&amp; sudo apt install codium<\/pre>\n<\/blockquote>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>VS Code is considered the most popular free editor for programmers and is offered by Microsoft free of charge for all platforms (Linux, Mac and of course Windows).<\/p>\n","protected":false},"author":1,"featured_media":588,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"portfolio_category":[9],"portfolio_tag":[],"class_list":["post-587","portfolio","type-portfolio","status-publish","has-post-thumbnail","hentry","portfolio_category-web-entwicklung"],"_links":{"self":[{"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/portfolio\/587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/portfolio"}],"about":[{"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/types\/portfolio"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/comments?post=587"}],"version-history":[{"count":3,"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/portfolio\/587\/revisions"}],"predecessor-version":[{"id":900,"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/portfolio\/587\/revisions\/900"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/media\/588"}],"wp:attachment":[{"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/media?parent=587"}],"wp:term":[{"taxonomy":"portfolio_category","embeddable":true,"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/portfolio_category?post=587"},{"taxonomy":"portfolio_tag","embeddable":true,"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/portfolio_tag?post=587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}