Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How can I edit the quick fix?(editing eclipse auto quick fix)
How can I edit the quick fix? [message #1727232] Mon, 21 March 2016 13:38 Go to next message
Ran Cohen is currently offline Ran CohenFriend
Messages: 2
Registered: March 2016
Junior Member
Basically, I just want that my exception would be printed, without the "// TODU". I want to remove it, but I don't know how (and google doesn't help Sad).
So how can I do it? the "// TODO" is really annoying...
Re: How can I edit the quick fix? [message #1727287 is a reply to message #1727232] Mon, 21 March 2016 17:50 Go to previous messageGo to next message
Erick Hagstrom is currently offline Erick HagstromFriend
Messages: 107
Registered: April 2014
Location: USA
Senior Member
http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fpreferences%2Fjava%2Fcodestyle%2Fref-preferences-code-templates.htm
Re: How can I edit the quick fix? [message #1727337 is a reply to message #1727287] Tue, 22 March 2016 09:12 Go to previous messageGo to next message
Ran Cohen is currently offline Ran CohenFriend
Messages: 2
Registered: March 2016
Junior Member
But where is the edit? The word "Quick" only appears twice, in the left tree for explanation on usage.
Re: How can I edit the quick fix? [message #1727353 is a reply to message #1727337] Tue, 22 March 2016 11:33 Go to previous message
Erick Hagstrom is currently offline Erick HagstromFriend
Messages: 107
Registered: April 2014
Location: USA
Senior Member
The word "Quick" has nothing to do with it. Your "// TODO" is coming from a code template, specifically the "Catch block body" code template.

So ignore the left tree. Read the page I linked. Follow the instructions for editing the "Catch block body" template. That's all you need.

To summarize, go to the Java > Code Style > Code Templates preferences page.
Select the "Catch block body" code template.
Select "Edit..."
Remove the offending comment.
Previous Topic:how to extend my own hover plugin
Next Topic:Changed thread handling for Eclipse JUnit plugin?
Goto Forum:
  


Current Time: Thu Mar 28 10:03:15 GMT 2024

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

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

Back to the top