Skip to main content
added 11 characters in body
Source Link
Jeff Mercado
  • 7.9k
  • 4
  • 39
  • 51

Here's a little quirk with the markdown editor that you could use without having to install separate scripts. Given selected text that is currently unindented, pressing the code button (or Ctrl + K) will add four spaces to all the selected lines. If all the selected lines are indented by more than four spaces, it will remove four spaces.

With that in mind, if you wanted to unindent any bit of code, you could just select it and hit the code button.

There isn't a way to add indents as easily AFAIKas far as I know unfortunately. For that, I just select four spaces, copy and paste where needed.

Here's a little quirk with the markdown editor that you could use without having to install separate scripts. Given selected text that is currently unindented, pressing the code button (or Ctrl + K) will add four spaces to all the selected lines. If all the selected lines are indented by more than four spaces, it will remove four spaces.

With that in mind, if you wanted to unindent any bit of code, you could just select it and hit the code button.

There isn't a way to add indents as easily AFAIK unfortunately. For that, I just select four spaces, copy and paste where needed.

Here's a little quirk with the markdown editor that you could use without having to install separate scripts. Given selected text that is currently unindented, pressing the code button (or Ctrl + K) will add four spaces to all the selected lines. If all the selected lines are indented by more than four spaces, it will remove four spaces.

With that in mind, if you wanted to unindent any bit of code, you could just select it and hit the code button.

There isn't a way to add indents as easily as far as I know unfortunately. For that, I just select four spaces, copy and paste where needed.

Source Link
Jeff Mercado
  • 7.9k
  • 4
  • 39
  • 51

Here's a little quirk with the markdown editor that you could use without having to install separate scripts. Given selected text that is currently unindented, pressing the code button (or Ctrl + K) will add four spaces to all the selected lines. If all the selected lines are indented by more than four spaces, it will remove four spaces.

With that in mind, if you wanted to unindent any bit of code, you could just select it and hit the code button.

There isn't a way to add indents as easily AFAIK unfortunately. For that, I just select four spaces, copy and paste where needed.