Microsoft/vscode

Shift + click the item in Outline view to select the related code (function, var...)

開放

#149,034 建立於 2022年5月8日

 (1 則留言) (7 個反應) (2 位負責人)TypeScript (39,847 個分叉)batch import
feature-requesthelp wantedoutline

倉庫指標

星標
 (184,936 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

It would be nice if we could have a possibility to quickly select the whole functions. In the text editor that I have used it is double-click on the item in the functions panel which allows that.

However, since double-click action in the Outline view is reserved in VSCode for giving focus to the editor, I suggest that you implement Shift+click on the item in the Outline view for selecting the full code of functions. Or, if you do that on the item that represents the definition of var/const, then the line with that definition could be selected.

貢獻者指南