Eclipse CDT:C ++编辑器窗口,在光标下选择单词? [英] Eclipse CDT : C++ Editor window, select word under cursor?
问题描述
我从一个著名的商业IDE获得了Eclipse。我正在为一个非常简单的用户要求而苦苦挣扎。
I am using Eclipse after coming from a well known commercial IDE. I am struggling with a very simple user requirement.
我要用一键搜索
光标下的单词!
I want to search for the word under the cursor with one key press!
我知道选择光标处元素的唯一方法是双击鼠标。 CTRL-LEFT / RIGHT,将光标移动到当前单词的开头/结尾,同时按SHIFT键选择。这意味着您需要按CTRL-LEFT,CTRL-SHIFT-RIGHT-CTRL-K进行搜索。
The only way I know to select the element at the cursor is mouse double click. CTRL-LEFT/RIGHT, moves the cursor to start/end of the current word, with a SHIFT selecting as it goes. This means you need to CTRL-LEFT, CTRL-SHIFT-RIGHT - CTRL-K to do a search.
因此,如果我可以将双击功能映射到键盘键,我的问题就解决了-映射键 + CTRL-K。
So if I can map the double click functionality to a keyboard key, my problem is solved - "Mapped Key" + CTRL-K.
推荐答案
菜单选项编辑|查找Word
可以满足您的需求。默认情况下,它没有任何键绑定,但是您可以在 Window |首选项
,常规->按键
The menu option Edit | Find Word
does what you want. It doesn't have any keybinding by default, but you can add one in Window | Preferences
, General -> Keys
这篇关于Eclipse CDT:C ++编辑器窗口,在光标下选择单词?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!