18
It is noticeable that in several IDE’s there are some shortcuts to indent the code. For example:
Eclipse(Win): Ctrl + Shift + F
Android Studio(Win): Ctrl + Alt + L
As everyone* knows, I assume, indentation visually organizes code so that dependent blocks are aligned, making it easier to understand and read.
An example of the code below unedited:
<div class="navbar-header">
<button type="button"
class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">SB Admin</a>
</div>
Now indented:
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">SB Admin</a>
</div>
Is there a shortcut or "trick" to indent the code in Sublime 3?
Are there other alternatives in the rule for this json that you sent? For example I saw that you have there
args
, would have other ways of doing following this pattern?– viana
@Acklay has a list in the documentation http://docs.sublimetext.info/en/latest/reference/key_bindings.html?highlight=key%20binding
– leofontes