1

One thing I do like about visual studio is the autoindent feature in the code behind where you can essentially close off the bracket of a loop or method or class and it'll automatically indent everything to make it consistent looking.

Is that possible to do in the markup as well?

1 Answer 1

5

Yes.

  • Press Ctrl+E, D
  • Click Format Document in the HTML Source Editing toolbar
  • Click Edit, Advanced, Format Document
9
  • 1
    oh wow!!! that did it! thanks. although it is Ctrl-K, D. At least on the Express edition
    – Diskdrive
    Feb 6, 2011 at 0:12
  • Hmm, I've always used Ctrl+K, F, and not sure of the corresponding UI option. I'm sure each command may have a slight difference, but any idea what? Feb 6, 2011 at 0:15
  • @MrD: It depends on your keyboard settings. It's the same command.
    – SLaks
    Feb 6, 2011 at 0:17
  • It's probably cause I'm on the Express edition, but Ctrl-E,D doesn't do anything for me at all.
    – Diskdrive
    Feb 6, 2011 at 0:18
  • Then is having two keyboard short cuts carry out the same command a consequence of having previous versions installed also, perhaps? Feb 6, 2011 at 0:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.