Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » JDT Quick-Fix Question : Smart Insert of Semicolon ??
JDT Quick-Fix Question : Smart Insert of Semicolon ?? [message #29638] Fri, 25 February 2005 17:39 Go to next message
Eclipse UserFriend
Originally posted by: leif.hanack.t-systems.com

Hello,

i found inside JDT tips and tricks the smart insert of semicolons but can
not get it to work.

I pressed Ctrl-Shift-Insert to enable this mode. the mode is displayed in
the lower part of the ide. I changed the preferences in order to enable
the insertion of semicolons.

BUT: how does it work now?!

I would suggest an automatically semicolon if i type s.th. like

String test = "test"

No semicolon:((

In IDEA there is a key binding, that 'finishs' the line. If i press in the
above example Ctrl-Shift-Enter the semicolon is added. Furthermore if you
have a line like

if ( 3==5

pressing Ctrl-Shift-Enter will change the code to

if ( 3==5 ) {

}

Is there a equivalent quick fix extension in eclipse?!
How does the smart insertion work?

Thanks in advance, Leif
Re: JDT Quick-Fix Question : Smart Insert of Semicolon ?? [message #1859383 is a reply to message #29638] Sat, 03 June 2023 19:38 Go to previous message
Petr Bodnar is currently offline Petr BodnarFriend
Messages: 4
Registered: July 2009
Junior Member
Hi, interestingly enough, it looks like there is no such function in Eclipse yet.

But there seems to be a plug-in for that: https://marketplace.eclipse.org/content/complete-current-statement-eclipse, which I have found on this page: https://stackoverflow.com/questions/17243304/intellij-idea-equivalent-of-eclipses-complete-current-statement-ctrlshift/45650237#45650237.
Previous Topic:Struggling to upload java project to GIT repository
Next Topic:Java fx
Goto Forum:
  


Current Time: Sat May 18 07:36:29 GMT 2024

Powered by FUDForum. Page generated in 0.05861 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top