#Jetbrains webstorm 11.0.1 code
In order to use XML validation and code completion when using XML Views, we need the XML definition for the UI5 libraries. This blog tries to fill the gap and help you set up WebStorm for use with UI5 development. Unfortunately, it currently has no support yet from SAP or the Open Source community for UI5, but according to some of the topics on SCN and Stackoverflow regarding UI5 development with WebStorm, it seems quite in demand.
#Jetbrains webstorm 11.0.1 license
WebStorm isn’t Open Source like Eclipse, but a personal license costs a mere 44 EUR and as such is worth it every penny. No other IDE I know of does this so perfectly and blazingly fast as WebStorm! In addition, it shows the onInit() function and oView variable as ‘unused’, making it easy to find redundant code. In the onInit() method, a variable oView is defined, and as you can see, the code completion is fully aware that within the controller ‘ this.getView()‘ is 1) a reference to the controller’s view, 2) that it’s of type sap.ui., and 3) provides access to the view’s methods and events. Here you see the WebStorm IDE with a file in the active editor tab. And if you add JsDoc comments to your code, you even benefit from proper type checking! You really have to try it to believe it.Īnd once you complete the steps described in this blog, you will benefit from excellent UI5 coding support as well! JetBrains WebStorm actually does all that: it is aware of your code, it does a good job at inspecting and analyzing your code, and has terrific support for other HTML5/CSS related stuff (for instance, it does refactoring across multiple file types such as *.js and *.css). The same is true for text editors like Sublime Text and Atom, which - although they have plugins that allow for rudimentary syntax highlighting and code checking - don’t have the context knowledge of the Javascript code you are writing, let alone check for syntax errors, unused variables/functions, type checking, and function signature mismatches, to name just a few. Although SAP provides pretty useful Eclipse plugins for SAPUI5 / OpenUI5 development, it still doesn’t help you write better, efficient, correct code.