Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eclipse - shortcut for surrounding a String by double quotes

Does anyone else is annoyed by putting strings into double quotes manually ? If I'm not writing code from left to right, but pasting Strings (which happens very often), especially if double click selects the content between surrounding double quotes, I must go at the beginning, type ", then at the end and type " again...very annoying.

like image 719
lisak Avatar asked Sep 23 '10 21:09

lisak


1 Answers

I don't know if such a shortcut exists. But what you want seems doable using a macro. So I would:

  • install Practically Macro for Eclipse
  • record a macro doing something like " - CRTL+V - " and name it
  • go to the Preferences, then General > Keys, type the name of the macro and assign a shortcut.
like image 56
Pascal Thivent Avatar answered Sep 22 '22 13:09

Pascal Thivent