search
top

JSEclipse 1.5 :: Hidden Treasures :: code completion and comments

In all programming languages writing comments is a good practice. In JSEclipse, writing comments is not just a good practice is a best practice.

JSEclipse takes into account code comments in many ways. First let’s take a look at a situation:

Basic code completion

If we add now a comment to the initialize method, that comment will be displayed along with the proposed completions.

Commented method

We can go further in specifying our comments, we can use JSDoc comments. Let’s specify a type for our parameters and try code completion on them inside the method:

Code completion from JSDoc

Another method to specify parameter types is the following:

Code completion from inline comments

Leave a Reply

*

top