简体   繁体   English

MacOS VSCode 中选择函数代码的快捷方式是什么?

[英]What's the shortcut of select a function code in VSCode on MacOS?

It is common to use shift+down to select a function code, I want a more efficient way to select function like below pic.使用shift+down来选择功能代码是很常见的,我想要一种更有效的方式来选择如下图所示的功能。 Thanks for help.感谢帮助。

My VSCode version and other info:我的 VSCode 版本和其他信息:

Version: 1.37.1
Submit: f06011ac164ae4dc8e753a3fe7f9549844d15e35
Date: 2019-08-15T16:16:34.800Z
Electron: 4.2.7
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Darwin x64 18.6.0

在此处输入图片说明

  1. collapse the function (space after the line number with the def )折叠函数(带有def的行号后面的空格)
  2. select the whole line选择整行
  3. remove the collapse移除折叠
  4. copy the selection ( Ctrl-C )复制选择( Ctrl-C

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 vscode中select多个区域的键盘快捷键是什么? - What is the keyboard shortcut to select multiple regions in vscode? VSCode自动缩进代码的快捷方式是什么? - What is the shortcut to auto indent code in VSCode? vscode,这个的快捷方式是什么(关闭/打开 function 块)? - vscode, what is the shortcut for this (close/open function block)? VSCode对vim的ci的快捷命令是什么<!--?</div--><div id="text_translate"><p> VSCode 是否有办法在标签之间实现 select? 而且我的意思不仅仅是折叠和取消折叠,我的意思是 select 开始和结束标签之间的所有内容。</p></div> - What is VSCode's shortcut command for VIM's ci<? 关闭vscode消息框的快捷方式是什么? - What's the shortcut to close vscode's message box? VSCode 快捷方式来选择两个方括号/圆括号之间的代码块? - VSCode shortcut to select the block of code between two brackets/parentheses? 在VSCode中选择引号之间的所有键盘快捷键是什么 - What is the keyboard shortcut to select everything between quotes in VSCode 打破水平线单词的VScode快捷方式是什么? - what's the VScode shortcut for breaking words of a Horizontal line? 在 macos 上,有没有办法将 vscode 关闭窗口与快捷方式相关联? - Is there a way, on macos, to associate vscode close window to a shortcut? VSCode 在 Linux 中选择菜单的快捷方式 - VSCode shortcut to select menu in Linux
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM