1

I am using Eclipse Java EE IDE for WebDevelopers in Version Luna (4.4.2).

Is there any way to comment lines with syntax error via shortcut automatically? I mean not just CTRL + / on every line (with syntax errors) manually.

alexander
  • 1,191
  • 2
  • 20
  • 40
  • 1
    Why would you want to do that? – Tassos Bassoukos May 11 '15 at 20:44
  • I just re-created a project through a clean up (yes, small project so far). I just changed the package name and need to change all classes as well. It just came into my mind. Also I had methods, which are no longer there. I just want to comment all erros in this case. – alexander May 12 '15 at 06:57

2 Answers2

3

There is no one short cut to do what you require, but you could use a combination.

Windows Short Cuts

  • Go to the next error: Ctrl + .
  • Go to the previous error: Ctrl + ,

Then

  • Comment that error: Ctrl + /

Extra

If you really wanted you could download a add-on and create a macro to automate the two short cuts into one.

Stackoverflow - Is there a Macro Recorder for Eclipse?

Community
  • 1
  • 1
Dan Cundy
  • 2,649
  • 2
  • 38
  • 65
0

Thought I would chime in with some helpful shortcuts from my other answer:

If you can't remember all shortcuts, then just learn Ctrl + Shift + L. That will show a list of available shortcuts.

Also: http://www.shortcutworld.com/en/win/Eclipse.html#link_11

Link http://www.vogella.com/tutorials/EclipseShortcuts/article.html

Link: Maximize code tab in eclipse shortcut

Community
  • 1
  • 1
Petro
  • 3,484
  • 3
  • 32
  • 59