Git Product home page Git Product logo

addanyfile's Introduction

Add Any File

Download this extension from the VS Marketplace or get the CI build.


A Visual Studio extension for easily adding new files to any project. Simply hit Shift+F2 to create an empty file in the selected folder or in the same folder as the selected file.

Features

  • Easily create any file with any file extension
  • Create files starting with a dot like .gitignore
  • Create deeper folder structures easily if required
  • Create folders when the entered name ends with a /

Add new file dialog

Show the dialog

A new button is added to the context menu in Solution Explorer.

Add new file dialog

You can either click that button or use the keybord shortcut Shift+F2.

Create folders

Create additional folders for your file by using forward-slash to specify the structure.

For example, by typing scripts/test.js in the dialog, the folder scripts is created if it doesn't exist and the file test.js is then placed into it.

Custom templates

Create a .templates folder at the root of your project. The templates inside this folder will be used alongside the default ones.

Keywords

Inside the template those keywords can be used:

  • {itemname}: The name of the file without the extension
  • {namespace}: The namespace

Types of template

3 types of template are available:

Exact match

When creating the file Dockerfile, the extension will look for dockerfile.txt template.

Convention match or Partial match

If you create a template with the name repository.txt, then it will be used when creating a file ending with Repository (eg: DataRepository).

Extension match

When creating the file Test.cs, the extension will look for .cs.txt template.

How can I help?

If you enjoy using the extension, please give it a ????? rating on the [Visual Studio Marketplace][marketplace].

Should you encounter bugs or if you have feature requests, head on over to the [GitHub repo][repo] to open an issue if one doesn't already exist.

Pull requests are also very welcome, since I can't always get around to fixing all bugs myself. This is a personal passion project, so my time is limited.

Another way to help out is to sponser me on GitHub.

addanyfile's People

Contributors

madskristensen avatar sameera avatar reduckted avatar timheuer avatar cihanuygun avatar sandercox avatar upta avatar kiritchoukc avatar maraf avatar mapitman avatar chucker avatar tkharaishvili avatar ariesdane avatar sqlop avatar yangzhinong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.