question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Increase and decrease heading levels in selected text

See original GitHub issue

When selecting some text with headings, please make it possible to increase and decrease heading levels within the selection.

For instance, if the following text is selected:

# abc

def

And then the command Increase heading levels is run, then it should result as:

## abc

def

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:10
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
yzhang-ghcommented, Jan 29, 2022

Thanks for the feedback. I agree it would be better to be selection-aware.

0reactions
Dartis4commented, Jan 29, 2022

Actually, it is designed to increase/decrease the heading level under cursor (not selection).

It being designed that way is the issue. VSCode generally applies modifications like this to all lines selected, whether that is through multi-line selection or through multi-cursor selection. This particular shortcut only applies it to the beginning of whatever the first line of the selection is, which severely limits the utility of the shortcut since you might as well just type in the characters rather than use the shortcut.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I change heading levels in Microsoft Word?
Select the heading you want to change and then click on the left pointing arrow to promote the highlighted headings. This changes the...
Read more >
How to decrease heading levels by one and change titles to ...
Press Ctrl+A to select the whole document. In the left group of the Outlining tab on the ribbon, click the single rightward green...
Read more >
Changing Outline Heading Level - Microsoft Word Tips
Click on one of the tools, to the left of the Outline Level drop-down list, that look like left-pointing arrows to make the...
Read more >
How to Add or Edit Heading Levels in a Table of Contents in ...
If you have created a custom or automatic table of contents (TOC) in a Word document, you can add heading levels to the...
Read more >
How to select and edit all headings at once in Word - YouTube
We usually want to select all headings in Word in order to make formatting changes quickly. Of course, we can manually change each...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found