{"id":2079,"date":"2022-08-12T09:56:24","date_gmt":"2022-08-12T07:56:24","guid":{"rendered":"https:\/\/nguenkam.com\/blog\/?p=2079"},"modified":"2022-08-12T09:56:24","modified_gmt":"2022-08-12T07:56:24","slug":"how-to-remove-unused-imports-in-vscode","status":"publish","type":"post","link":"https:\/\/nguenkam.com\/blog\/index.php\/2022\/08\/12\/how-to-remove-unused-imports-in-vscode\/","title":{"rendered":"How to remove unused imports in VSCode"},"content":{"rendered":"\n<p>Unused and unorganized imports are a headache for any project. It uses\u00a0<strong>unnecessary space<\/strong>,\u00a0<strong>memory<\/strong>, and\u00a0<strong>increases LOC<\/strong>.<\/p>\n\n\n\n<p>Here\u00b4s a shortcut to fix these issues: ( <em><span class=\"has-inline-color has-vivid-cyan-blue-color\">we gonna Fix them on just SAVING the file <\/span><\/em>) <\/p>\n\n\n\n<ol><li><em>Open  (Visual Studio Code) <strong>settings JSON<\/strong><\/em> <\/li><li>Add this below code in\u00a0<em>settings.json<\/em>\u00a0file.<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>  \"editor.codeActionsOnSave\": {\r\n        \"source.organizeImports\": true\r\n    }<\/code><\/pre>\n\n\n\n<p>\u00a0Now just save it and its done ?. Go to any messed up file and just save it.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unused and unorganized imports are a headache for any project. It uses\u00a0unnecessary space,\u00a0memory, and\u00a0increases LOC. Here\u00b4s a shortcut to fix these issues: ( we gonna Fix them on just SAVING the file ) Open (Visual Studio Code) settings JSON Add this below code in\u00a0settings.json\u00a0file. \u00a0Now just save it and its done ?. Go to any [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1965,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[40,575,161,210,299],"_links":{"self":[{"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2079"}],"collection":[{"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=2079"}],"version-history":[{"count":1,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2079\/revisions"}],"predecessor-version":[{"id":2080,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2079\/revisions\/2080"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/media\/1965"}],"wp:attachment":[{"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=2079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=2079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=2079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}