Automatically add namespace when adding new item

前端 未结 4 428
暖寄归人
暖寄归人 2020-12-08 23:55

When adding a new item (class, control, etc) in C# it will automatically add a namespace to the file depending on the location in the project.

Is this also available

4条回答
  •  眼角桃花
    2020-12-09 00:39

    This is available as part of Resharper where you can create templates to do this.

    This is the standard template.

    Namespace $NAMESPACE$
        Public Class $CLASS$ 
            $END$
        End Class
    End Namespace
    

提交回复
热议问题