This Visual Studio Code extension assists developers by providing coding suggestions and refactoring support with github copilot chat.
- Offers intelligent code refactoring suggestions to improve code quality.
/refactor: Provides refactoring suggestions for the currently selected code.
- You can download the extension directly from the following link: Download Extension
- Open Visual Studio Code.
- Press
Ctrl+Shift+Xto open the Extensions view. - Click on the
...icon in the top-right corner of the Extensions view and select Install from VSIX.... - Select the downloaded
.vsixfile and click Install.
Alternatively, you can install the extension using the command line:
code --install-extension path/to/code-helper-0.0.1.vsixTo uninstall the extension, you can use the command line:
code --uninstall-extension path/to/code-helper-0.0.1.vsix- Install the required dependencies:
npm install
- Compile the extension:
npm run compile
- Open the project in Visual Studio Code:
code . - Press
F5to launch and debug the extension.
- Open file in Visual Studio Code.
- Open the GitHub Copilot Chat panel.
- Select a file and highlight the code you want to refactor.
- Type @code-helper in github copilot chat with ask mode.
- Type command
/refactorin the chat to receive refactoring suggestions.