https://github.com/nikiforovall/vsc-code-axe
Enhance your code editing and refactoring workflow
https://github.com/nikiforovall/vsc-code-axe
made-by-ukrainians refactoring vscode vscode-extension
Last synced: 7 months ago
JSON representation
Enhance your code editing and refactoring workflow
- Host: GitHub
- URL: https://github.com/nikiforovall/vsc-code-axe
- Owner: NikiforovAll
- License: apache-2.0
- Created: 2025-03-01T13:12:09.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-03-01T20:45:11.000Z (8 months ago)
- Last Synced: 2025-03-01T21:27:19.755Z (8 months ago)
- Topics: made-by-ukrainians, refactoring, vscode, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=nikiforovall.code-axe
- Size: 1.38 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# code-axe 🛠️
**Enhance your code editing and refactoring workflow**
`code-axe` is a Visual Studio Code extension that streamlines the process of code manipulation. With simple keyboard shortcuts, you can quickly extract, copy, or expand methods without manual text selection, making refactoring tasks more efficient and error-free. `code-axe` helps you work with method-level code blocks as cohesive units.
## Features
* `code-axe.cutMethod` (ctrl+M X) - Cut the method under the cursor and copy it to the clipboard.
* `code-axe.copyMethod` (ctrl+M C) - Copy the method under the cursor to the clipboard.
* `code-axe.expandMethod` (ctrl+M E) - Expand the method under the cursor.* `code-axe.sortDescendantMethodsUnderCursor` (ctrl+M S) - Sort the descendant methods under the cursor topologically.
Example:
```csharp
// before
public class TestMethod
{
public void MethodC()
{
Console.WriteLine("Line");
Console.WriteLine("Line");
Console.WriteLine("Line");
}public void MethodB()
{
MethodC();
Console.WriteLine("Line");
Console.WriteLine("Line");
Console.WriteLine("Line");
}public void MethodA()
{
Console.WriteLine("Line");
MethodB();
Console.WriteLine("Line");
Console.WriteLine("Line");
}
}
``````csharp
//after
public class TestMethod
{
public void MethodA()
{
Console.WriteLine("Line");
MethodB();
Console.WriteLine("Line");
Console.WriteLine("Line");
}public void MethodB()
{
MethodC();
Console.WriteLine("Line");
Console.WriteLine("Line");
Console.WriteLine("Line");
}public void MethodC()
{
Console.WriteLine("Line");
Console.WriteLine("Line");
Console.WriteLine("Line");
}
}
```