如何在Eclipse中的选定文本周围添加引号

hom*_*rrr 3 eclipse keyboard-shortcuts

无数次我需要在编程期间在文本周围加上引号.我记得有一段时间以前我见过有人选择文字,只是用键盘快捷键做魔术并在其周围加上引号.怎么办?

ush*_*sha 8

在日食中

1. Window -> Preferences -> Java -> Editor -> Templates
2. Click on "New"
3. Type "quote" for name (you can name it whatever you want)
4. In the pattern box, enter "${word_selection}"${cursor}
5. Click ok
6. Click apply and close preferences
7. Select the string you want quoted, press CTRL + <space> and type quote
Run Code Online (Sandbox Code Playgroud)