{"id":2103,"date":"2017-05-18T11:22:17","date_gmt":"2017-05-18T11:22:17","guid":{"rendered":"http:\/\/salientsoft.co.uk\/?p=2103"},"modified":"2018-10-10T17:15:56","modified_gmt":"2018-10-10T17:15:56","slug":"webstorm-ideoragnising-imports-tipsgotchas","status":"publish","type":"post","link":"https:\/\/salientsoft.co.uk\/?p=2103","title":{"rendered":"Webstorm IDE&ndash;Oragnising Imports Tips\/Gotchas"},"content":{"rendered":"<p>1\/ Organising imports does not seem to happen automatically when it should. To organise imports for a given folder or the project, select the appropriate level in the navigator then hit <em>Code\/Optimise Imports<\/em> or <em>ctrl+alt+0<\/em> <a href=\"https:\/\/www.jetbrains.com\/help\/webstorm\/2017.1\/optimizing-imports.html\">as detailed here<\/a>.<\/p>\n<p>2\/ TSLint gives errors about double quotes in imports as it prefers single quotes in all the code (double quotes for html), but Webstorm uses double quotes by default when organising imports. You can change Webstorm to use single quotes as per <a href=\"http:\/\/stackoverflow.com\/questions\/39779272\/webstorm-phpstorm-double-quotes-in-typescript-auto-import\">this post here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\/ Organising imports does not seem to happen automatically when it should. To organise imports for a given folder or the project, select the appropriate level in the navigator then hit Code\/Optimise Imports or ctrl+alt+0 as detailed here. 2\/ TSLint gives errors about double quotes in imports as it prefers single quotes in all the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[207,205],"tags":[40,16],"_links":{"self":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2103"}],"collection":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2103"}],"version-history":[{"count":1,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2103\/revisions"}],"predecessor-version":[{"id":2104,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2103\/revisions\/2104"}],"wp:attachment":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}