如何解决VS2017中是否有内置方法来清理代码中的制表符?
当我在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>
解决方法
要么转到:
编辑>高级>设置文档格式
或者默认快捷键是Ctrl + E,D
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。