This extension will helps you keep your *proj files in sync when using VS Code. This is useful if you work in a team that uses both VS Code and Visual Studio.
This extension needs a Visual Studio Code Workspace in order to be activated.
The workspace should contain :
"settings": {
"vsproj": {
//Must be true to be activated on the current workspace
"activate": true,
//List of RegEx to exclude some files
"exclude": []
}
}
If the extension is activated for the workspace, you can see this in the status bar :
When you switch to or create/update/delete a file/folder, it will find the nearest .*proj
up the file system tree, and update it depending on the action you've done.
You can add/remove a file or folder to vsproj via the command palette (recursively) :
Or via the context menu in the file explorer:
You can see extension output in the output tab of the terminal.
This extension contributes the following settings (all settings can be overrided in the workspace but it is not merged) :
Setting Key | Description |
---|---|
vsproj.enable |
Enable/disable this extension. |
vsproj.projExtension |
VS project file to watch and update. Defaults: "njsproj" |
vsproj.encoding |
VS project file encoding. Defaults: "ascii" |
vsproj.itemType |
Mapping from file extension to vsproj XML element. Defaults to: { "*": "Content", ".js": "Compile", ".ts": "TypeScriptCompile" } |
vsproj.includeRegex |
Regular expression to match files you want to add to vsproj. |
vsproj.excludeRegex |
Regular expression to exclude files you do not want to add to vsproj. |
These regular expressions will prevent unwanted files to be added in the proj file. If a file matches includeRegex
and excludeRegex
, it will be excluded.
You can also ignore files by workspace with the exclude
setting described above.
Features:
- Configure VS project file encoding
Features:
- Debug output in terminal
Features:
- Exlude files from workspace configuration file
Features:
- Need a workspace configuration to activate and constraint the folders
- All prompts have been removed
- Work when creating folders
- Work when moving files/folders
- Work when renaming file/folder
- Work when removing files/folders
See GitHub for full release history
- Renaming file or folder and changing only case will create a second entry with the new file/folder name without removing the previous.
MIT