Eclipse中选择单词的快捷键

发布于 2024-08-17 13:34:49 字数 32 浏览 1 评论 0原文

有没有可以选择单词的键盘快捷键?或者可以如何分配?

Is there any keyboard shortcut to select a word? Or may be it can be assigned some how?

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

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

发布评论

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

评论(4

一紙繁鸢 2024-08-24 13:34:49

Shift + Alt + 选择封闭元素。

Shift + Alt + 反转 Shift + Alt + ↑< /kbd>。

Shift + Alt + 选择在文件中向上移动的封闭元素。

Shift + Alt + 选择在文件中向下移动的封闭元素。

Shift + Alt + selects enclosing elements.

Shift + Alt + reverses Shift + Alt + .

Shift + Alt + selects enclosing elements moving up the file.

Shift + Alt + selects enclosing elements moving down the file.

肩上的翅膀 2024-08-24 13:34:49

在 Eclipse 中查找任何键盘快捷键的最快方法是使用 Help->Key Assist(或 Ctrl + Shift + L),其中会弹出一个漂亮的工具提示,其中包含键盘快捷键及其作用。 (如果您按两次“按键辅助”快捷键,您将进入“按键首选项”页面,该页面允许您重新分配快捷键。)

String |myFancyString = "FooBar";

如果您的光标紧邻“m”左侧(我用竖线(|)表示这一点) ) :

  • Shift + Alt + (选择下一个元素)将选择 'myFancyString'

  • Shift + Alt + (选择上一个元素)也会选择“myFancyString”

  • Ctrl + Shift + (选择下一个单词)会选择“myFancyString” ',重复它会选择“myFancy”,然后选择“myFancyString”

The quickest way to find any keyboard shortcut in Eclipse is to use Help->Key Assist (or Ctrl + Shift + L), which will pop up a nice tooltip with keyboard shortcuts and what they do. (If you press he Key Assist shortcut twice, you'll get the Keys Preferences page, which allows you to reassign shortcuts.)

String |myFancyString = "FooBar";

If your cursor is immediately to the left of 'm' (I am indicating this with a pipe (|)) :

  • Shift + Alt + (Select Next Element) would select 'myFancyString'

  • Shift + Alt + (Select Previous Element) would also select 'myFancyString'

  • Ctrl + Shift + (Select Next Word) would select 'my', repeating it would select 'myFancy', followed by 'myFancyString '

各空 2024-08-24 13:34:49

Shift + Alt + 选择光标周围的单词

Shift + Alt + selects the word surrounding the cursor

往事随风而去 2024-08-24 13:34:49

要进行选择,您可以使用 Shift + Alt + 任意箭头键。

To select, you can use Shift + Alt + any arrow key.

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