如何将 Visual Studio 中的多行代码转换为单行 Ubuntu 中的代码
How to convert Multi-line code to single line in Visual Studio Code in Ubuntu
在Ubuntu.
的VS Code 2018(版本1.23)中,是否有将多行代码转换为单行代码的快捷方式
例如转换为:
<label class="container-of-label">
<input type="checkbox" class="dataTable-checkBox">
<span class="checkmark"></span>
</label>
至:
<label class='container-of-label'><input type='checkbox' class='dataTable-checkBox'><span class='checkmark'></span></label>
标记要转换为单行的代码,按 F1,键入连接线,按 Enter 瞧!
您可能还想为此操作分配一个键盘快捷键。在键盘快捷键列表中搜索 Join lines
并分配所需的快捷键。
在Ubuntu.
的VS Code 2018(版本1.23)中,是否有将多行代码转换为单行代码的快捷方式例如转换为:
<label class="container-of-label">
<input type="checkbox" class="dataTable-checkBox">
<span class="checkmark"></span>
</label>
至:
<label class='container-of-label'><input type='checkbox' class='dataTable-checkBox'><span class='checkmark'></span></label>
标记要转换为单行的代码,按 F1,键入连接线,按 Enter 瞧!
您可能还想为此操作分配一个键盘快捷键。在键盘快捷键列表中搜索 Join lines
并分配所需的快捷键。