eclipse - 用双引号包围字符串的快捷方式

发布于 2024-09-24 13:21:38 字数 106 浏览 8 评论 0原文

还有其他人因手动将字符串放入双引号而烦恼吗?如果我不是从左到右编写代码,而是粘贴字符串(这种情况经常发生),特别是如果双击选择周围双引号之间的内容,我必须在开头输入“,然后在末尾输入“又……很烦人。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

十二 2024-10-01 13:21:38

不知道是否有这样的捷径。但你想要的似乎可以使用宏来实现。所以我会:

  • 为 Eclipse 安装 Practically Macro
  • 记录一个宏,执行类似 的操作” - CRTL+V - " 并将其命名
  • ,转到首选项,然后一般>键,键入宏的名称并指定快捷键。

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.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文