如何在 Eclipse 中的选定文本周围添加引号
How to add quotation marks around selected text in Eclipse
在编程过程中,我无数次需要在文本周围加上引号。我记得不久前我看到有人选择文本并简单地使用键盘快捷键并在其周围加上引号。如何操作?
日食中
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
在编程过程中,我无数次需要在文本周围加上引号。我记得不久前我看到有人选择文本并简单地使用键盘快捷键并在其周围加上引号。如何操作?
日食中
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