{"id":11,"date":"2013-10-11T18:30:00","date_gmt":"2013-10-11T18:30:00","guid":{"rendered":"\/blog\/blog\/mastering_webstrom.html"},"modified":"2013-10-11T18:30:00","modified_gmt":"2013-10-11T18:30:00","slug":"mastering-web-storm","status":"publish","type":"post","link":"https:\/\/mohammedlakkadshaw.com\/blog\/mastering-web-storm.html","title":{"rendered":"Mastering web-storm"},"content":{"rendered":"<p>I am big fan of sublime text, and I use it extensively. Then I came across WebStorm, I like it and I want to learn more about it, because any craftsman should know how to use his tools effectively.<br \/>\nSo I was looking for some tutorial and videos on mastering web storm and I came across this excellent video by John Lindquist. I highly recommend that you <a href=\"http:\/\/www.youtube.com\/watch?v=LJOyrSh1kDU&#038;feature=youtu.be\">watch the video<\/a>.<\/p>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"\/\/www.youtube.com\/embed\/LJOyrSh1kDU\" frameborder=\"0\" allowfullscreen=\"\"><\/iframe><\/p>\n<p>I have also tried to summarise what\u2019s there in the video, but I recommend that you watch the whole thing, but for those who cannot spare the time to watch the whole thing, here is the excerpt:<\/p>\n<h3 id=\"code-inspect\">Code Inspect:<\/h3>\n<p>Webstorm offers a nice code inspector, and to inspect code, right click on any directory inside Webstorm and click inspect Code.<br \/>\nIt will give you a list of the issues and warnings and improvements which you can make, and is kind of really useful when your are doing code reviews and stuff like that.<\/p>\n<p><strong>Autocomplete Shortcut<\/strong>: Whenever a small bulb appears in Web storm, it indicated that Webstorm has some suggestions, and you can hit  <em>alt+Enter<\/em> to bring the menu which shows the suggestions.<\/p>\n<p><strong>Go back in time<\/strong>: Webstorm has a nice auto-save feature, you don\u2019t have to manually save things in Webstorm, and when you have changed something and want to revert your change you can go back in time by: <em>Right-click-> local history<\/em><\/p>\n<p><strong>Getting things from CDN<\/strong>: When using CDN in script tags and stylesheets src, Webstorm will show a warning, you can hit <em>alt+Enter->Download locally<\/em>, by doing that it will download the linked file and show autocomplete off that.<\/p>\n<p><strong>Fine tune suggestions<\/strong>: In Webstorm you can fine tune the settings about auto-complete, suggestions, warning and errors.<br \/>\nClick on the lower right hand side corner->on hector the inspector and fine tune the inspection<\/p>\n<h3 id=\"keyboard-shortcuts\">Keyboard shortcuts:<\/h3>\n<p>To learn about keyboard shortcuts, go to<br \/>\n<a href=\"https:\/\/www.shortcutfoo.com\/app\/tutorial\/webstorm\">Shorcut Foo<\/a><\/p>\n<h3 id=\"actions\">Actions:<\/h3>\n<p><em>Cmd + Shift + A<\/em> bring the action bar.<br \/>\nSelect content, and press <em>cmd+shit+a<\/em> and select <em>create live template.<\/em><br \/>\nAnd add variable by $name$ and $end$ to specify where the cursor ends.<br \/>\nWebstorm uses velocity template language.<\/p>\n<h3 id=\"refactoring\">Refactoring<\/h3>\n<p>Refactor this shortcut CMD+SHIFT+ALT+T<br \/>\n\/<strong>+tab automatically generate the document<br \/>\n**Cmd+Alt+V<\/strong> to pulling out variable.<\/p>\n<h3 id=\"navigation\">Navigation<\/h3>\n<p>Open up the file structure: can also be invoked by cmd+f12<\/p>\n<p>To navigate project: cmd+shift+n, wildcard are also supported<br \/>\ns\/a\/*.js -> source\/auto\/ and all the javascript<br \/>\ncmd+alt+shift -> type the name of the method<br \/>\nand cmd+shift+i while doing this, will also show preview of the file, and cmd+shift+j while doing that will show documentation if available.<\/p>\n<h3 id=\"version-control\">Version control:<\/h3>\n<p>Webstrom also has an integrated VCS manager, to bring the VCS Popup hit <em>Ctrl+V<\/em>.<br \/>\nWebstorm is also integrated with Github, you can easily import your github repos in Web-storm.<\/p>\n<h3 id=\"external-tools\">External tools:<\/h3>\n<p>To add external tools, go to <em>Preference -> External tools<\/em> and add details about the external tools you want to add, for e.g. Yeoman<\/p>\n<h3 id=\"file-launchers\">File launchers:<\/h3>\n<p>If you create a coffee script file, it will ask you to add a watcher, and it will generate the corresponding js file, same if for sass etc.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am big fan of sublime text, and I use it extensively. Then I came across WebStorm, I like it and I want to learn more about it, because any craftsman should know how to use his tools effectively. So I was looking for some tutorial and videos on mastering web storm and I came [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-11","post","type-post","status-publish","format-standard","hentry","category-misc"],"_links":{"self":[{"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/posts\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":0,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"wp:attachment":[{"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}