大家好,小南来为大家解答以上问题。Vscode怎么创建多光标,Vscode创建多光标方法这个很多人还不知道,现在让我们一起来看看吧!
1、 方法一:用鼠标。
2、 首先,按住键盘上的“option”(在Windows上)
3、 Alt),然后在第二个"5"前单击,则第二个光标被创建。现在你可以看到两个光标。第二个光标比第一个稍微细一点。
4、 然后,按右箭头键,将光标移到“5”后面,输入“px”。这样,“px”已经加在“5”后面了,中间你只做了一次输入。
5、 方法二:使用键盘。
6、 首先,你应该把光标移到第一个“5”的前面。然后按“Cmd选项向下箭头”(在Windows上为CtrlAlt)
7、 向下箭头”)在当前光标下创建光标。
8、 那么第二个光标,因为在第一个光标的正下方,所以不在第二行的“5”前面。不过没关系,我们有办法解决。别急,你最好做同样的事情,创建第三个光标。
9、 然后是尝试将光标移动到正确位置的时候了。虽然三个光标的位置比较分散,没有规律,但是可以移动到相似的位置:按“Cmd”
10、 右箭头键”(在Windows上为End),这样它们都移动到每一行的末尾。
11、 最后,这里的问题很简单。你只需要按“左箭头键”将光标移动到5后面,然后输入px就可以完成整个操作。
12、 希望这个教程能帮到大家!请关注更多教程!
本文到此结束,希望对大家有所帮助。