Convert selected text using a hotkey

I have this code:

Myvariable

which i want to change to

trace ("myVariable:" + myVariable);

using the direct hotkey, for example alt- f12. I do not use ctrl- spaceand arrow buttons.

is this possible in an eclipse?

+3
source share
1 answer

I do not know if it is possible to bind hotkeys for templates. One way to do this is to use the correct template name and "insert automatically."

trcc (), Eclipse ( "$ {name}:" + ${name}); ( ). , , . (, trcc , )

, . ( ${enclosing_type} ${enclosing_method}, )

+3

Source: https://habr.com/ru/post/1699456/


All Articles