vscode-powershell icon indicating copy to clipboard operation
vscode-powershell copied to clipboard

Feature Request: Refactor - Extract Method

Open scorpionlion opened this issue 5 years ago • 6 comments

Summary of the new feature 'As a developer I want a script segment to be extracted out as a function so that function can be used in other scripts files as well.'

Proposed technical implementation details (optional) This is common functionality provided in VS code https://code.visualstudio.com/docs/editor/refactoring https://refactoring.com/catalog/extractFunction.html

scorpionlion avatar Mar 31 '19 19:03 scorpionlion

I would love to have this!

dmoka avatar Jun 12 '20 12:06 dmoka

I second this.

ravager-dk avatar May 12 '21 11:05 ravager-dk

Yes, please. I've had this refactoring option for many other languages in different IDEs, and it's very useful.

GlenAppleton avatar Mar 27 '22 13:03 GlenAppleton

Yes, please! :)

dpo007 avatar Sep 08 '22 16:09 dpo007

IMO: This feature definitively needs attention. Or, according to documentation, may there is a plugin in the store which can provide the "extract-Method refactoring" for powershell-Files? I didn't find any.

gRexGV avatar Jul 20 '23 12:07 gRexGV