Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I navigate between headers when editing a Markdown file in Visual Studio Code?

Is there any keyboard shortcut to jump between headers when editing a Markdown file in Visual Studio code? It could be using an extension or (hopefully) without any. I am using MacOS.

like image 793
acyment Avatar asked Oct 24 '25 16:10

acyment


1 Answers

You can use the Go to Symbol in Editor... command, which on Windows and Linux is bound by default to ctrl+shift+o (not sure what it is on MacOS), and which opens a searchable and clickable selection menu of all the headings for Markdown files. You can also use arrow keys to navigate between entries listed in that menu. You can also edit keybindings to your liking.

You can also use the breadcrumbs bar (the thing between the tab bar and the editor panel). Just click on one of the heading entries in the breadcrumbs bar to get a popup menu where you can click on any other heading to jump there.

There's also the outline view (a subsection of the Explorer view), which you can focus with the Explorer: Focus on Outline View command, and bind to a keybinding with the outline.focus command ID.

like image 105
starball Avatar answered Oct 27 '25 14:10

starball



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!