With the continuous delivery model of the Orion cloud IDE you may have already tried many of the awesome new features in the latest release. The official release of Orion 9.0 provides an excellent time to review and promote what the project has been up to.
Try them now at Orionhub.org!
Tern in Orion
The single largest change made this release was adding a Tern server for code analysis. As soon as you start editing code we are feeding Tern information about what you are working on. Beyond the file you are editing we follow dependencies and add their information to Tern as well. This includes Node libraries linked through require() calls, AMD modules linked via define() calls and embedded scripts in HTML files. Further to that, Orion includes Tern readable indexes containing type information for common libraries including ECMAScript, Node.js, Redis, MySQL and others.
Tern performs code analysis on all of the scripts available and returns highly accurate and context specific content assist proposals (Ctrl+Space to activate). We have a large library of code templates as well to help you code faster.
Tern also returns us in-depth descriptions for the types and functions you use. We deliver this information in the form of tool-tips (hover with the mouse or press F2). Use tool-tips to help understand the arguments in your API calls. In many cases we provide a link to the MDN spec where you can continue to learn more.
Take your IDE a step further by navigating the tree of dependencies. You can already hover over require/define dependencies to navigate to those files. Now you can Jump to Declaration (F3 or the Tools menu) from anywhere in your code to immediately navigate to the declaraction of a function or variable. This includes jumping to other scripts.
Find yourself constantly navigating between files? Use the split editor view (drop down menu at the top right) to display multiple files on the same page in whatever layout works for you.
Use the information Tern has collected to perform some refactoring. The Rename Element command (Shift+Alt+R or the Tools menu) will let you choose a new name and have Tern figure out all the places needing changes.
More to discover
Don’t wait, use Orion to code, deploy and run in the cloud.