visual-studio-2017 - 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
推荐阅读
- python - 查询从 Logistic 回归得到的概率
- swift - 快速的 EXC_BAD_ACCESS
- python-3.x - matplotlib.pyplot 的维护?指定向量时丢失“:”
- python - Django,环境变量。错误:SMTPRecipientsRefused at /password_reset/
- javascript - 我收到此错误:“TypeError:回调不是函数”,但该函数仍在执行
- android - 在华为 P40 Lite 中,TextToSpeech onInit() 以 ERROR 状态被调用
- html - 如何从 Firebase 实时获取 ID 或密钥
- javascript - 如何在导航中恢复Angular中组件(不是窗口)的滚动位置?
- jquery - 单击后将用户重定向到特定国家/地区网站页面的网站按钮(API IP 位置)
- c - 返回书名、价格和页数的程序