lisak
lisak

Reputation: 21981

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.

Upvotes: 7

Views: 6081

Answers (1)

Pascal Thivent
Pascal Thivent

Reputation: 570605

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.

Upvotes: 6

Related Questions