Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Neptuo.Productivity.AddNewItem

Neptuo.Productivity.AddNewItem

Neptuo

|
126 installs
| (0) | Free
Productivity tools by Neptuo: Add new item. Easily create any type of file or folder and include it in project.

Easily create any type of file or folder and include it in project. It can be triggered from the Solution Explorer when you right click on any folder or project -> Add -> Any Item...

add-new-item.png

Demo on YouTube

For definition of new file templates, you need a file AddNewItem.xml somewhere in the path between the directory you are creating file and the drive root. Here is an example, file must follow XSD http://schemas.neptuo.com/xsd/productivity/vsix/AddNewItem.xsd.

<?xml version="1.0" encoding="utf-8" ?>
<Templates IsStandalone="true" xmlns="http://schemas.neptuo.com/xsd/productivity/vsix/AddNewItem.xsd">
    <Template>
        <Selector FileName="*.cs" />
        <Content>
<![CDATA[using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace $namespace$
{
    public class $itemname$
    {
        $end$
    }
}
]]>
        </Content>
    </Template>
</Templates>

v2.0

  • Visual Studio 2022 only.
  • Add file to project root with "~/Class.cs".

v1.0

  • Create any file base XML template definitions.
  • Create folders.
  • XML templates uses snippet syntax.
  • Support for creating nested C# classes.
  • Use '..' to navigate up in the path.
  • VS2017 and VS2019 support.
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft