views:

46

answers:

1

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.

+3  A: 

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.
Pascal Thivent
It works great Pascal, macro: insert "; ctrl >; insert " .... I put it as ctrl + z and I have what I wanted
lisak
@lisak Glad it helped.
Pascal Thivent