Git Product home page Git Product logo

vscode-csproj's Introduction

VS Code .csproj Extension

This extension will helps you keep your csproj files in sync when using VS Code. This is useful if you work in a team that uses both VS Code and Visual Studio.

Demo

Adding Files to a Project

DemoGif

Removing Files from a Project

Single File Deletion Multiple File Deletion
Single deletion example Multiple deletion example

How it Works

When you switch to or save a file not in the nearest .csproj up the file system tree, you will prompted.

Prompt

Choosing "Close" will add an item to the status bar and stop asking you while you have the file open.

File Not in csproj File Contained in csproj
Add to csproj Contained in csproj

You can add a file to csproj via the command palette:

Command Palette

Or via the context menu in the file explorer:

Context Menu

Extension Settings

This extension contributes the following settings:

Setting Key Description
csproj.enable Enable/disable this extension.
csproj.csprojRegex Regular expression to match the closest .csproj file by.
csproj.itemType Mapping from file extension to csproj XML element. Defaults to:
{ "*": "Content", ".ts": "TypeScriptCompile" }
csproj.silentAddition Silently add items to csproj. Default: false.
csproj.silentDeletion Silently delete items from csproj when their corresponding files are removed. Default: false.
csproj.includeRegex Regular expression to match files you want to add to csproj.
csproj.excludeRegex Regular expression to exclude files you do not want to add to csproj.

These regular expressions will prevent unwanted prompts. If a file matches includeRegex and excludeRegex, it will be excluded.

The regular expressions will prevent this extension from prompting for action, but it intentionally will not prevent you from adding via the command palette or a context menu. However, if you click "Include in Project" on a directory, files.exclude, your saved ignore list, csproj.includeRegex and csproj.excludeRegex will be honored.

Links

Release Notes

Most Recent Release (0.7.1)

Features:

  • Added csproj.silentAddition configuration setting.
  • Added csproj.csprojRegex configuration setting.

See GitHub for full release history

License

MIT

vscode-csproj's People

Contributors

azz avatar

Watchers

James Cloos 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.