Eclipse Semicolons Tales

Eclipse has the option to put the semicolon at the right place in your coding.

For some very annoying reason my workspace had this feature disabled. In case you have the same activate it via the following:

About Lars Vogel

Lars Vogel is the founder and CEO of the vogella GmbH and works as Eclipse and Android consultant, trainer and book author. He is a regular speaker at international conferences, With more than one million visitors per month his website vogella.com is one of the central sources for Eclipse and Android programming information.
This entry was posted in Eclipse. Bookmark the permalink.

6 Responses to Eclipse Semicolons Tales

  1. Tom says:

    Interesting… I always thought that nobody at all was using ‘Smart Semicolon’…

  2. andrew says:

    What’s the effect of this feature?

  3. admin says:

    @andrew Eclipse will put the semicolon at the right place in your coding, e.g. end of line.

  4. Greg says:

    Thanks for the reminder. I had it set for Java but was having the same problem with JavaScript and couldn’t remember how to set it. I use this feature all the time and really like it.

  5. Gilles says:

    @Andrew: It puts the semicolon at the end of the line, no matter at what position the cursor in that line is, while you type the ;

    .composite.dispose()

    ..composite.d>;<ispose()

    …composite.dispose() ;

  6. Peter Friese says:

    This is one of my favorite settings and one of the first things I activate in a fresh workspace (actually I’m using Google’s Eclipse Workspace Mechanic to automate this). I can’t imagine living without this feature!

Comments are closed.