Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/filipw/strathweb.roslyn

Roslyn refactorings and code actions
https://github.com/filipw/strathweb.roslyn

Last synced: about 1 month ago
JSON representation

Roslyn refactorings and code actions

Awesome Lists containing this project

README

        

Strathweb.Roslyn
================

Roslyn refactorings and code actions

### Move Class To File

A refactoring (`Ctrl + .`) which allows you to extract a class into its own file.

Class is extracted into the same folder that the current file is located in.
The namespace is the same is of the original file; similarly all of the using statements are copied over.
If the class has any comments on it, they are taken as well.

Obviously, it's also removed from the original document.

The refactoring is offered only for classes matching the following requirements:

- class is not private
- class name does not match the current filename

![alt tag](http://i.imgur.com/YQnu1rX.png)

Install it [from VSIX Gallery](https://visualstudiogallery.msdn.microsoft.com/4151b07d-ed17-4158-960b-0c14eae7c330).