如何在Visual Studio代码中选择一行? [英] How do I select a single line within Visual Studio Code?
问题描述
使用Microsoft的Visual Studio代码,如何选择一行代码? (相当于Mac上Atom或其他IDE的 Cmd + L )
Using Microsoft's Visual Studio Code, how do I select a single line of code? (equivalent to Atom's or other IDE's Cmd+L on Mac)
我要寻找的命令是什么? (例如editor.action.copyLinesDownAction
)
And what would be the command I'm looking for? (e.g. editor.action.copyLinesDownAction
)
这非常令人困惑,因为其他选择缩写,例如 Cmd + A 和 Cmd + D 就像我以前的IDE一样.
It's quite confusing, since other selection shortucts like Cmd+A and Cmd+D are the same as in my previous IDE's.
推荐答案
在1.32之前的VS Code版本中,默认情况下为 Cmd + I .
It's Cmd+I by default in VS Code versions prior to 1.32.
从版本 1.32 开始,它是 Cmd + L .
Starting from version 1.32 it's Cmd+L.
您可以通过搜索expandLineSelection
在键盘快捷方式"中对其进行更改.
You could change it in Keyboard Shortcuts by searching for expandLineSelection
.
这篇关于如何在Visual Studio代码中选择一行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!