필터 지우기
필터 지우기

Change shortcut for focusing command window and editor?

조회 수: 24 (최근 30일)
Vukan Turkulov
Vukan Turkulov 2016년 9월 2일
답변: Denis Dube 2024년 3월 19일
The keyboard shortcuts for focusing the command window and the editor are Ctrl+0 and Ctrl+Shift+0. I want to change them, however I cannot find them listed in the keyboard shortcuts options in preferences. Is it possible to change them, or are they intended to be unchangable?

답변 (2개)

Jonathan Kwang
Jonathan Kwang 2016년 9월 7일
Unfortunately, you are not able to customize the keyboard shortcut for making the command window or editor the active tool.
More information about which keyboard shortcuts you cannot customize can be found at the following link: http://www.mathworks.com/help/matlab/matlab_env/keyboard-shortcuts.html#br7iqjj-1
  댓글 수: 6
jessupj
jessupj 2022년 7월 20일
@Mark Schwab Still nothing?
Vukan Turkulov
Vukan Turkulov 2023년 2월 3일
I think it's safe to say that MathWorks is not actively working on this feature.

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


Denis Dube
Denis Dube 2024년 3월 19일
Customizable keys is surprisingly hard in a large piece of software like MATLAB (I'm a Simulink UI dev).
However, it is possible to configure keys to your liking using software like Autohotkey (on Windows OS). Here's a script (put this in the AHK file) that will also give the MATLAB window itself focus if it doesn't already have it:
; AutoHotkey Version: 1.x
#NoEnv
SendMode Input
; Control + Windows key + E/C to bring Editor/Command-window of MATLAB into focus
^#E::FocusMATLAB("Editor")
^#C::FocusMATLAB("CommandWindow")
FocusMATLAB(focusWhatArg)
{
SetTitleMatchMode RegEx
if WinExist("MATLAB")
{
if( !WinActive() )
{
; Make sure MATLAB window has focus
WinActivate
}
if( InStr(focusWhatArg,"Editor") )
{
Send {Ctrl Down}{Shift Down}{0}{Shift Up}{Ctrl Up}
}
else ; CommandWindow case
{
Send {Ctrl Down}{0}{Ctrl Up}
}
}
}
Cheat sheet for modifier keybinds in Autohotkey: WinKey=#, Alt=!, Control=^, Shift=+

카테고리

Help CenterFile Exchange에서 Desktop에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by