-2

I have some codes in my project. But looks disordered and i want to order it and indent it with a shortcut like ALT + SHIFT + F in Netbeans.

Can any one help me to do that.

Thanks in advance!!

Versatile
  • 459
  • 5
  • 20
Jez Avila
  • 51
  • 1
  • 7

1 Answers1

1

Look at this: How to automatically indent source code?

Essentially:

Ctrl+E, D - Format whole doc Ctrl+K, Ctrl+F - Format selection

(from included link)

Community
  • 1
  • 1
Snappawapa
  • 1,697
  • 3
  • 20
  • 42
  • 5
    You really should have proposed duplicate instead of cloning the answer... Or at least provide some additional info... – Alexei Levenkov Jun 24 '15 at 17:08
  • Thanks, but If that conbination is not available, how can i enable this option? In VS2013. Additionaly, Can i use the same combination to apply it in xaml code? – Jez Avila Jun 24 '15 at 17:48
  • Thanks, Snappawapa. In your link most of suggestions are wrong, Ctrl + F is for searchings, Ctrl + K is for bookmarks. The right one is Ctrl + K + D for whole doc and Ctrl + K + F for selection in VS2013. But first of all, I needed to reset the configurations. – Jez Avila Jun 24 '15 at 18:07
  • @JezAvila No problem, glad to help. I posted this because it worked for me – Snappawapa Jun 24 '15 at 18:09