译文 你不知道的VS Code冷门快捷技巧( 四 )


ofyour mouse tothose small , did you know you can just -click on thepanel toa new file?
你知道吗,与其不停地移动鼠标寻找这些小按钮,你只需双击资源管理器面板就能创建新文件 。
How about a new ? Well,arefiles, and when you’rea new file, you canuse the /toaandnewand sub- tothat file.
新建一个文件夹怎么样?好吧,没有文件,文件夹就什么都不是,当您创建新文件时,您可以轻松地使用 / 字符来指示层次结构并创建新文件夹和子文件夹来包含该文件 。
It would be even moreto use, which is what I did.
使用键盘快捷键会更有效率,我就是这么做的 。
As aAtom fan, I hadused to the A and Shift + Afornew files and; I knew what I had to do.
作为 Atom 的老粉丝,我很快就习惯了分别用于创建新文件和文件夹的 A 和 Shift + A 快捷键;我知道自己该做什么 。
Since A and Shift + A arekeys we code with, Ithe whenhere to make sure they onlya new file/ when thepane has focus and there’s noin the.
由于 A 和 Shift + A 显然是我们编码时使用的按键,因此我在这里加入了 when 值,以确保它们只在资源管理器窗格有焦点且当前编辑器中没有活动光标时创建新文件/文件夹 。
So to use thesewhen , you’ll have to focus on thepane first; click on it, or use Ctrl/ + Shift + E.
因此,要在键入时使用这些快捷键,你必须先关注资源管理器窗格;点击它,或使用 Ctrl/ + Shift + E 。
Key要点
localwithview;in
pane by .
使用时间轴视图启用本地源代码控制;默认情况下可在资源管理器窗格中使用 。
files with File > .
使用文件 > 自动保存功能自动保存文件 。
Runinwith Ctrl + Shift + P or Shift +
+ P.
使用 Ctrl + Shift + P 或 Shift ++ P 在命令面板中运行命令 。
Go to a file with Ctrl + P,open files with Alt +
Left/Right or Ctrl + Tab.
用 Ctrl + P 转到文件,用 Alt + 左/右或 Ctrl + Tab 在打开的文件间导航 。
Go to a line with Ctrl + G.
用 Ctrl + G 转到某一行 。
a line with Ctrl + Shift + K .
用 Ctrl + Shift + K 删除一行 。
with :Caret
.
使用编辑器启用平滑键入: 光标平滑键入动画设置 。
code with, use ,
to Ctrl + D, Ctrl + D .
使用格式化文档命令格式化代码,使用 ,将快捷键改为 Ctrl + D、Ctrl + D。
Useat once with Alt + Click. Ctrl + Alt + Up/Down
adds aabove/below.
使用 Alt + Click 同时使用多个光标 。Ctrl + Alt + 上/下可在上方/下方添加光标 。
Move a line up or down with Alt/ + Up/Down in /Mac.
在 /Mac 中使用 Alt/ + 上/下移动一行 。
a new file by - thepane or set a.a new file in a newwith
“/file.ext”.
双击资源管理器窗格或设置自定义键盘快捷键创建新文件 。用 "/file.ext "在新文件夹中创建新文件 。
Check out the VS Code Keydocs to learn more aboutand how tothem. Italist of all theVS Codein your.
查看 VS Code Key文档,了解更多有关键盘快捷键以及如何自定义它们的信息 。其中包括操作系统中所有默认 VS 代码快捷键的完整列表 。
Final最后的想法
Code is more than just a text— it’s atool that, when , canboost yourandyour. The ten tips andwe’veare just the tip of the . As youtoVS Code, you willaof otherandthat willyour.
Code 不仅仅是一个文本编辑器–它还是一个强大的工具,只要熟练掌握,就能大大提高你的工作效率,简化你的编码工作流程 。我们探讨的十个技巧和窍门只是冰山一角 。在继续浏览 VS Code 的过程中,你还会发现大量其他功能和快捷方式,它们将进一步提升你的编码体验 。
So, keep , keep , and : the key tolies not just in the code , but also in the tools you use to write it.