{"id":54,"date":"2007-05-11T07:00:35","date_gmt":"2007-05-11T12:00:35","guid":{"rendered":"https:\/\/blogs.mathworks.com\/desktop\/2007\/05\/11\/setting-up-keybindings-for-the-command-window-and-editor\/"},"modified":"2007-05-11T12:14:47","modified_gmt":"2007-05-11T17:14:47","slug":"setting-up-keybindings-for-the-command-window-and-editor","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/community\/2007\/05\/11\/setting-up-keybindings-for-the-command-window-and-editor\/","title":{"rendered":"Setting up keybindings for the Command Window and Editor"},"content":{"rendered":"<p>For purely historical reasons, the Command Window ships with its keybindings set to &#8220;MATLAB Classics (Emacs)&#8221;.  We used to only have one set of keybindings for the Command Window and we didn&#8217;t want to change the behavior that people were used to.  The Editor, however, uses the platform&#8217;s keybinding set as its default.  This often causes confusion when a keybinding doesn&#8217;t work in the Command Window like expected.  I quite often get requests from customers to hook up a keybinding that is already there.  We will probably make changes in this area in a future release, but in the meantime check your keybinding preferences to make sure that they are set they way you want them.  <\/p>\n<p>If you are on a Mac, you will probably be much happier if you change the keybindings to the Mac set for the Command Window.  Once you do this, command-a will select all and the navigational keystrokes work more like you would expect.<\/p>\n<p>On Windows, if you set your keybindings to the Windows set, you will get the Windows keybindings that you expect.  For instance, Ctrl-P will print instead of recalling the previous command history item.<\/p>\n<p>So, if you haven&#8217;t done this before, take a look at your keybinding preferences (File->Preferences menuitem) and try changing the keybinding sets to the appropriate platform set and see if you like it:<\/p>\n<p><a href=\"\"https:\/\/blogs.mathworks.com\/community\/..\/images\/desktop\/keybindingprefs.jpg\"\"><img decoding=\"async\" id=\"image55\" src=\"https:\/\/blogs.mathworks.com\/community\/..\/images\/desktop\/keybindingprefs_sm.jpg\" alt=\"keybindingprefs.jpg\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For purely historical reasons, the Command Window ships with its keybindings set to &#8220;MATLAB Classics (Emacs)&#8221;.  We used to only have one set of keybindings for the Command Window and we&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/community\/2007\/05\/11\/setting-up-keybindings-for-the-command-window-and-editor\/\">read more >><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,9],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts\/54"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/comments?post=54"}],"version-history":[{"count":1,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts\/54\/revisions"}],"predecessor-version":[{"id":1503,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts\/54\/revisions\/1503"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/media?parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/categories?post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/tags?post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}