Is there a shortcut for selecting the word under the cursor in MATLAB?

조회 수: 4 (최근 30일)
Andy
Andy 2015년 11월 2일
편집: Andy 2015년 11월 3일
As per question, to replace double click
To clarify, I mean the caret not the mouse cursor.

채택된 답변

TastyPastry
TastyPastry 2015년 11월 2일
You could use shift + arrow to move to the beginning/end of a word, then shift + control + arrow in the opposite direction to select the word.

추가 답변 (1개)

Image Analyst
Image Analyst 2015년 11월 2일
Surely you're not saying that clicking twice is too hard, and you'd rather move your fingers farther to do some keystroke or combination of keystrokes, so I'm assuming you're wanting to get help on the function name that your cursor is placed in. So to do that, you simply have to hit the F1 key. You don't have to actually double click to highlight the whole word in order to get help on it.
Otherwise the best way I know to do it is to do Ctrl+rightarrow then do Ctrl+Shift+leftarrow, however that selects the space after the word also, whereas double-click does not select the trailing space.
  댓글 수: 4
Image Analyst
Image Analyst 2015년 11월 2일
Certain keyboards will let you assign certain sequences of keystrokes to some keys, such as the F12 key. For example https://www.microsoft.com/hardware/en-us/help/support/how-to/keyboard/macros
Otherwise you can use third party programs like autohotkey: http://www.autohotkey.com/
Andy
Andy 2015년 11월 3일
편집: Andy 2015년 11월 3일
Walter Robertson, very interesting article.
Image analyst, thanks for the other suggestions. TastyPastry got in the earliest to earn the accepted answer.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by