{"id":231,"date":"2010-07-16T13:30:17","date_gmt":"2010-07-16T11:30:17","guid":{"rendered":"http:\/\/www.speich.net\/articles\/?p=231"},"modified":"2015-12-23T16:32:14","modified_gmt":"2015-12-23T15:32:14","slug":"how-to-get-code-assist-for-dojo-in-phpstorm","status":"publish","type":"post","link":"https:\/\/www.speich.net\/articles\/en\/2010\/07\/16\/how-to-get-code-assist-for-dojo-in-phpstorm\/","title":{"rendered":"How to get code assist for dojo in PHPStorm"},"content":{"rendered":"<p><strong>Update: Since Version 2.0 EAP 98.458 you get<a href=\"http:\/\/blogs.jetbrains.com\/webide\/2010\/11\/working-with-javascript-libraries-in-phpstorm-webstorm\/\"> JavaScript library support<\/a>, thus the following is obsolet.<\/strong><\/p>\n<p>In case you were wondering how you get dojo code support in PHPStorm even if dojo is <strong>not<\/strong> in your project folder, here&#8217;s the solution:<\/p>\n<figure style=\"width: 723px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\" \" title=\"Install dojo in PHPStorm from external directory.\" src=\"\/articles\/images\/screenshot-PhpStorm-dojo-install.jpg\" alt=\"Install dojo in PHPStorm from external directory.\" width=\"723\" height=\"577\" \/><figcaption class=\"wp-caption-text\">Make code assist for dojo work if it is in an external directory.<\/figcaption><\/figure>\n<p>1. Open Project Settings<\/p>\n<p>2. Select Directories<\/p>\n<p>3. Add the path to your dojo folder as a new Content Root.<\/p>\n<p>4. Mark the directories dijit, dojo, dojox as a Resource Root<\/p>\n<p>That&#8217;s it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update: Since Version 2.0 EAP 98.458 you get JavaScript library support, thus the following is obsolet. In case you were wondering how you get dojo code support in PHPStorm even if dojo is not in your project folder, here&#8217;s the solution: 1. Open Project Settings 2. Select Directories 3. Add the path to your dojo &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.speich.net\/articles\/en\/2010\/07\/16\/how-to-get-code-assist-for-dojo-in-phpstorm\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to get code assist for dojo in PHPStorm&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[26,75,91],"class_list":["post-231","post","type-post","status-publish","format-standard","hentry","category-javascript","tag-dojo","tag-phpstorm","tag-tutorial","entry"],"_links":{"self":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts\/231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/comments?post=231"}],"version-history":[{"count":1,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts\/231\/revisions"}],"predecessor-version":[{"id":1216,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts\/231\/revisions\/1216"}],"wp:attachment":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/media?parent=231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/categories?post=231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/tags?post=231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}