{"id":4672,"date":"2024-09-25T12:19:40","date_gmt":"2024-09-25T11:19:40","guid":{"rendered":"https:\/\/ibex.tech\/python\/?p=4672"},"modified":"2024-10-23T09:25:42","modified_gmt":"2024-10-23T08:25:42","slug":"2-making-vs-code-work-the-way-we-like","status":"publish","type":"post","link":"https:\/\/ibex.tech\/python\/python-on-windows\/visual-studio-code\/2-making-vs-code-work-the-way-we-like","title":{"rendered":".2 Making VS Code work the way we like"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">VS Code Options<\/h4>\n\n\n\n<p>Our general settings for VS Code \u2013&nbsp;<a href=\"https:\/\/ibex.tech\/programming\/visual-studio-code-vs-code\/making-vs-code-work-the-way-we-like\" target=\"_blank\" rel=\"noreferrer noopener\">see here<\/a><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Python programming specific settings<\/h5>\n\n\n\n<p>Use CTRL+SHIFT+P and then enter \u201cOpen User Settings (JSON)\u201d to open the raw json file. Check it has the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\t\"&#91;python]\": {\n\t\t\"editor.formatOnType\": true,\n\t\t\"editor.trimAutoWhitespace\": false,\n\t\t\"editor.insertSpaces\": true,\n\t\t\"editor.tabSize\": 4  \n\t},<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>File &gt; Preferences &gt; Settings<\/p>\n\n\n\n<p>\u201ceditor.trimAutoWhitespace\u201d: false \u2013 stops VSCode auto removing indent of blank lines<\/p>\n","protected":false},"excerpt":{"rendered":"<p>VS Code Options Our general settings for VS Code \u2013&nbsp;see here Python programming specific settings Use CTRL+SHIFT+P and then enter \u201cOpen User Settings (JSON)\u201d to open the raw json file. Check it has the following: File &gt; Preferences &gt; Settings \u201ceditor.trimAutoWhitespace\u201d: false \u2013 stops VSCode auto removing indent of blank lines<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[370],"tags":[],"class_list":["post-4672","post","type-post","status-publish","format-standard","hentry","category-visual-studio-code"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4672","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/comments?post=4672"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4672\/revisions"}],"predecessor-version":[{"id":4722,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4672\/revisions\/4722"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/media?parent=4672"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/categories?post=4672"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/tags?post=4672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}