How to exclude selecting headers in a file when ctrl a select all or ctrl home go to beginning of a file in vscode?
eg:
Given a markdown file
<link href='G:/Using/mdCss/style.css' rel='stylesheet' />
<link href='./style.css' rel='stylesheet' />
<!-- some random header info -->
This is the content.
Some random sentences.
Current behavior:
press ctrl a
you select all of the lines.
Expected behavior:
Do some configuration.
eg: put a comment as separator.
<link href='G:/Using/mdCss/style.css' rel='stylesheet' />
<link href='./style.css' rel='stylesheet' />
<!-- some random header info -->
<!-- ctrl a dont select above -->
This is the content.
Some random sentences.
press ctrl a
you will only select:
This is the content.
Some random sentences.
_end
Is it possible?
- Same logic for
ctrl home
. - Not just for md, also for html, or other programming languages.
1