{"id":69,"date":"2007-06-15T15:10:03","date_gmt":"2007-06-15T20:10:03","guid":{"rendered":"https:\/\/blogs.mathworks.com\/desktop\/2007\/06\/15\/scroll-less-with-editor-bookmarks\/"},"modified":"2007-08-15T14:36:33","modified_gmt":"2007-08-15T19:36:33","slug":"scroll-less-with-editor-bookmarks","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/community\/2007\/06\/15\/scroll-less-with-editor-bookmarks\/","title":{"rendered":"Scroll less with Editor Bookmarks"},"content":{"rendered":"<p>When I am working on code, I find that I often need to move back and forth between two places in the code &#8211; sometimes several places in the code.  The best way to do this in MATLAB is with Bookmarks in the Editor.  To add a bookmark in a file, place your caret on the line that you wish to mark, and then select the Go menu, Set\/Clear Bookmark menuitem:<\/p>\n<p><a href=\"https:\/\/blogs.mathworks.com\/community\/..\/images\/desktop\/setbookmark.jpg\"><img decoding=\"async\" id=\"image68\" src=\"https:\/\/blogs.mathworks.com\/community\/..\/images\/desktop\/setbookmark.jpg\" alt=\"set bookmark\" \/><\/a><\/p>\n<p>You can also use the Ctrl-F2 (On the Mac, Command-F2) keybinding to set a bookmark instead of using the menuitem.<\/p>\n<p>A blue bookmark will be added to the gutter next to the line numbers:<\/p>\n<p><a href=\"https:\/\/blogs.mathworks.com\/community\/..\/images\/desktop\/bookmark.jpg\"><img decoding=\"async\" id=\"image68\" src=\"https:\/\/blogs.mathworks.com\/community\/..\/images\/desktop\/bookmark_sm.jpg\" alt=\"set bookmark\" \/><\/a><\/p>\n<p>Now you can easily move between bookmarks using the F2 key to move to the next bookmark and the Shift-F2 to go back to the previous bookmark, no matter where you are in the file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I am working on code, I find that I often need to move back and forth between two places in the code &#8211; sometimes several places in the code.  The best way to do this in MATLAB is with&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/community\/2007\/06\/15\/scroll-less-with-editor-bookmarks\/\">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":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts\/69"}],"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=69"}],"version-history":[{"count":0,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}