-
Notifications
You must be signed in to change notification settings - Fork 0
IntelliJ setup
IntelliJ is the recommended IDE for developing Ghost - whether you're working on core, themes, or plugins, IntelliJ has full support for Node.js and several other tools that Ghost makes use of.
IntelliJ is a fully-fledged IDE, you can use it for developing Java just as easily as JavaScript. It does have a little brother WebStorm, which should work just as well for Node.js :)
Under settings (win) / preferences (mac) -> plugins -> browse repositories
Select and install Nodejs & Handlebars/Mustache plugins
IntelliJ has awesome shortcuts, take some time to get to know them.
Under settings (win) / preferences (mac) -> Keymap
In the search/find box: Type 'go'
You'll see entries for Declaration and Implementation which allow you to click on variables/functions & take you to the declaration or implementation. These are super useful for JS. Learn them or reassign them to something you'll remember.
In the search/find box: Type 'usage'
Assign Find Usages to something like Cmd/Ctrl + Button2 Click by right-clicking on it and choosing 'Add mouse shortcut'. Cmd/Ctrl + Button 2 click on any variable or function name will then open a find box with all usages of that variable/function.
IntelliJ is a power tool - take some time to learn the keybindings and discover what they do!
http://stackoverflow.com/questions/17043484/grunt-debugging-from-webstorm/17452803#17452803
http://themespectre.com/ghost-development-and-debugging-in-webstorm-step-by-step/