Today's post is very brief, but I wanted to highlight a feature which was recently added to psc-ide
- the ability to jump to the definition of the name under the cursor.
This feature is available in the editor plugins for Emacs, Vim, Atom and VS Code, but I'll show it here in Atom. Simply use the appropriate shortcut (Ctrl+⌘+G on my Mac) while the cursor hovers over the name you want, or right-click, and select the Go to definition option from the PureScript submenu.
psc-ide
keeps an index of all type constructors, data constructors, type classes, top-level values, etc. by their name, which makes this operation useful in lots of situations, and instantaneous!
In fact, it can even use this index of names to fix typos in your code. On the same menu, simply choose "Fix typo", and select from the available options:
If these features aren't working for you, remember you have to build your dependencies at least once so that psc-ide
can use the build products to build its index. So try running pulp build
and restarting psc-ide-server
if you are having problems.