Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wix-incubator/vscode-extractor

Extract to Method VSCode Extension
https://github.com/wix-incubator/vscode-extractor

developer-tools devtools refactoring vscode vscode-extension

Last synced: 3 months ago
JSON representation

Extract to Method VSCode Extension

Awesome Lists containing this project

README

        

# Extractor VSCode Plugin

Adds support for "extract to method" to VSCode.

## NOTE: You should probably use the internal extract to function feature of VSCode

![Example Image](https://file-zvwanozdyl.now.sh/extract.gif)

## NOTE: This extension is in a WIP state

## Features

- Extract to Class Method
- Extract to Global Function
- Extract to Inline Function
- Detects which extraction strategy is relevant to the selected code
- Detects external parameters *and their types*

## How to Use

Select some text and press `cmd+.`

## Known Issues

- Doesnt support extracting commands with the `await` keyword

## Unknown Issues
- Quite a bit (probably)

### 0.3.0

Fix Typescript issue by upgrading to babel-template 7

### 0.2.0

Load Typescript/Flow by file type

### 0.1.0

Initial Release