Normally, when I post some code, I can just type the code, highlight it and press Ctrl+K to indent it four spaces to get the markdown code highlighting.
However, when I have a numbered list such as the one below, the code beneath each bullet must be indented by 8 spaces instead of 4. When I press Ctrl+K twice, it just reverses the indentation rather than giving me 8 spaces.
Is there a keyboard shortuct to give me 8 spaces on a highlighted section of code? (I realize going to each line and hitting Space four times will work, but it can slow if one has a lot of code).
This
Sample code
Is
- A
- List
<pre><code></code></pre>
as another approach. That way I can make changes and not have to worry about kludging the indentation again if I make a mistake or need to paste something back in. .