I'm coming from Sublime Text to Eclipse. One of my favorite feature of ST is highlighting a piece of text, and then being able to wrap it in quotations or parenthesis by pressing the appropriate key.
That probably poorly explains the functionality, so here's a gif example:
So, as you can see, if you highlight a piece of text, and then, in this example, press (
it will wrap the highlighted text in parenthesis.
When I try this in Eclipse, highlighting the text, and then pressing (
simply replaces what I highlighted rather than wrapping it up.
Is there a way to get this functionality inside of Eclipse?
Highlight the text, cut it (ctrl x), type quotes, paste text (ctrl v).
It's kind of a lame solution but it's faster since eclipse creates both quotes and puts cursor in the middle.
I don't think this functionality is in Eclipse by default, but you could try to add it yourself.
Select the block that you want to surround and press Alt+Shift+Z. This will open the "Surround with..." menu. It suggests some predefined templates, but also allows to add new ones. This is the closest of what Eclipse offers for that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With