admin管理员组文章数量:1357307
I like eclipse, and with some tweaking it can be used for javascript programming. There's syntax pletion, linting, formatting, and there's "outlining", albeit only for simple javascript files.
What annoys me is that there is no "Outline View" for files that follow the "revealing module" design pattern. This happens to be my favorite coding style.
Is there a plugin somewhere that adds to Eclipse an "extended" outline view that is able to "see inside" the nested structure of a .js file written in the "revealing module style", showing the encapsulated private functions and members? (The normal "eclipse outline view is usually empty for this type of style).
I like eclipse, and with some tweaking it can be used for javascript programming. There's syntax pletion, linting, formatting, and there's "outlining", albeit only for simple javascript files.
What annoys me is that there is no "Outline View" for files that follow the "revealing module" design pattern. This happens to be my favorite coding style.
Is there a plugin somewhere that adds to Eclipse an "extended" outline view that is able to "see inside" the nested structure of a .js file written in the "revealing module style", showing the encapsulated private functions and members? (The normal "eclipse outline view is usually empty for this type of style).
Share Improve this question asked Sep 26, 2012 at 10:57 knbknb 9,4335 gold badges66 silver badges87 bronze badges1 Answer
Reset to default 9Answering my own question, again:
The javascript functions inside the IIFE must be annotated in the JSDoc style, then they will appear in the outline view.
The whole process is described here, with screenshots:
http://www.kajabity./2012/02/how-i-introduced-jsdoc-into-a-javascript-project-and-found-my-eclipse-outline/
本文标签:
版权声明:本文标题:Is there an eclipse plugin that creates an outline view for the "javascript revealing module pattern"? - Stack 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743980205a2571049.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论