Add ability to shift / indent highlighted block easily #14051
-
|
One of the things I use with Markdown lists on a daily basis is nesting or including additional content. The markdown editor will preserve the current indention level as you're typing, however I often need to include large blocks of content from other places that require me to format it in an external tool just to align it properly. It would be tremendously helpful if there was a way I could highlight a block and shift / indent it relative to nearby content. Example
If I wanted to drop a block into one of lines: on:
pull_request:
branches:
- 'releases/**'
- '!releases/**-alpha'I have to use vim for greater formatting control to shift content and possibly other formatting to result in:
And that is just 1 line item! Would be super grateful for consideration! ✨ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Okay, so huge props to @apdarr who pointed out he stumbled upon the fact this is already supported! If you highlight whole blocks or lines, you can use Tab and Shift Tab to indent and dedent the highlighted section. I can't figure out where within GitHub Docs this information would live as I don't see anything in https://docs.github.com/en/get-started/writing-on-github but will continue my quest. |
Beta Was this translation helpful? Give feedback.
Okay, so huge props to @apdarr who pointed out he stumbled upon the fact this is already supported!
If you highlight whole blocks or lines, you can use Tab and Shift Tab to indent and dedent the highlighted section. I can't figure out where within GitHub Docs this information would live as I don't see anything in https://docs.github.com/en/get-started/writing-on-github but will continue my quest.