{"id":367,"date":"2010-06-07T15:23:53","date_gmt":"2010-06-07T15:23:53","guid":{"rendered":"https:\/\/blogs.mathworks.com\/desktop\/2010\/06\/07\/editor-tab-switching\/"},"modified":"2010-06-07T15:23:53","modified_gmt":"2010-06-07T15:23:53","slug":"editor-tab-switching","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/community\/2010\/06\/07\/editor-tab-switching\/","title":{"rendered":"Editor Tab Switching"},"content":{"rendered":"<p>Ken&#8217;s been kind enough to <a href=\"https:\/\/blogs.mathworks.com\/community\/2008\/12\/29\/fantastic-features-of-2008\/#comment-6039\">point out<\/a> in the comments on how to switch between open files in the MATLAB Editor. The keyboard shortcut<\/p>\n<ul>\n<li><strong>Ctrl+Page Up<\/strong> to move from right to left on the tabs<\/li>\n<li><strong>Ctrl+Page Down<\/strong> to move from left to right<\/li>\n<\/ul>\n<p>Note that these only work when the documents are docked together in the Editor (although the Editor group itself can be undocked from the Desktop). <\/p>\n<p>If you were previously unaware of these keyboard shortcuts, you might also be unaware of these other features of the Editor tabs:<\/p>\n<ol>\n<li>An Editor with unsaved changes will have an &#8220;<strong>*<\/strong>&#8221; after the file name.<\/li>\n<li>Each Tab has a context menu that lets you:\n<ul>\n<li>Manually reorder the tabs<\/li>\n<li>Reorder the tabs alphabetically<\/li>\n<li>Close some or all of the open documents<\/li>\n<li>Move the tab bar from the bottom to top, left, or right<\/li>\n<div align=\"center\">\n<img decoding=\"async\" border=\"0\" src=\"https:\/\/blogs.mathworks.com\/images\/desktop\/michael_katz_editor_tabs\/editor_tab_context_menu.png\" alt=\"Editor Tab Context Menu\">\n<\/div>\n<\/ul>\n<\/li>\n<\/ol>\n<p>When there is only one Document open in the Editor, the Tab Bar goes away. To access that context menu functionality, you can use the menu items in the Desktop -> Document Bar menu. Just make sure the Editor group has focus first. <\/p>\n<p>Bonus tip: You can also switch focus between Desktop components (not just documents) with shortcuts <strong>Ctrl+Tab<\/strong> and <strong>Ctrl+Shift+Tab<\/strong>. And remember, you can customize any of these shortcuts in the preferences: File -> Preferences -> Keyboard -> Shortcuts:<\/p>\n<div align=\"center\">\n<img decoding=\"async\" border=\"0\" src=\"https:\/\/blogs.mathworks.com\/images\/desktop\/michael_katz_editor_tabs\/shortcuts_next_tab.png\" alt=\"Customize Keyboard Shortcuts for Next Tab\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Ken&#8217;s been kind enough to point out in the comments on how to switch between open files in the MATLAB Editor. The keyboard shortcut<\/p>\n<p>Ctrl+Page Up to move from right to left on the&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/community\/2010\/06\/07\/editor-tab-switching\/\">read more >><\/a><\/p>\n","protected":false},"author":38,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts\/367"}],"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\/38"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/comments?post=367"}],"version-history":[{"count":0,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts\/367\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/media?parent=367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/categories?post=367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/tags?post=367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}