VS2017 中是否有内置方法来清理我代码中的制表符?
Is there a built-in method in VS2017 to clean up the tabbing in my code?
当我在 ASP 中设计我的页面时,复制和粘贴、添加代码以及移动代码会使选项卡对齐变得混乱。我想知道 VS2017 是否有内置的方法来清理选项卡并将所有内容对齐到各自适当的级别。
之前:
<asp:DropDownList ID="DropDownList17" runat="server" Width="120px"></asp:DropDownList>
</td>
<td>
<asp:DropDownList ID="DropDownList20" runat="server" Width="120px"></asp:DropDownList>
</td>
<td>
<asp:DropDownList ID="DropDownList21" runat="server" Width="120px"></asp:DropDownList>
</td>
<td>
<asp:DropDownList ID="DropDownList22" runat="server" Width="120px"></asp:DropDownList>
</td>
</tr>
<tr>
之后:
<asp:DropDownList ID="DropDownList17" runat="server" Width="120px"></asp:DropDownList>
</td>
<td>
<asp:DropDownList ID="DropDownList20" runat="server" Width="120px"></asp:DropDownList>
</td>
<td>
<asp:DropDownList ID="DropDownList21" runat="server" Width="120px"></asp:DropDownList>
</td>
<td>
<asp:DropDownList ID="DropDownList22" runat="server" Width="120px"></asp:DropDownList>
</td>
</tr>
要么去:
Edit > Advanced > Format Document
或者默认快捷键是Ctrl+E,D
当我在 ASP 中设计我的页面时,复制和粘贴、添加代码以及移动代码会使选项卡对齐变得混乱。我想知道 VS2017 是否有内置的方法来清理选项卡并将所有内容对齐到各自适当的级别。
之前:
<asp:DropDownList ID="DropDownList17" runat="server" Width="120px"></asp:DropDownList>
</td>
<td>
<asp:DropDownList ID="DropDownList20" runat="server" Width="120px"></asp:DropDownList>
</td>
<td>
<asp:DropDownList ID="DropDownList21" runat="server" Width="120px"></asp:DropDownList>
</td>
<td>
<asp:DropDownList ID="DropDownList22" runat="server" Width="120px"></asp:DropDownList>
</td>
</tr>
<tr>
之后:
<asp:DropDownList ID="DropDownList17" runat="server" Width="120px"></asp:DropDownList>
</td>
<td>
<asp:DropDownList ID="DropDownList20" runat="server" Width="120px"></asp:DropDownList>
</td>
<td>
<asp:DropDownList ID="DropDownList21" runat="server" Width="120px"></asp:DropDownList>
</td>
<td>
<asp:DropDownList ID="DropDownList22" runat="server" Width="120px"></asp:DropDownList>
</td>
</tr>
要么去:
Edit > Advanced > Format Document
或者默认快捷键是Ctrl+E,D