Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Auto ConfiguratorNew to Visual Studio Code? Get it now.
Auto Configurator

Auto Configurator

StarByteGames

|
1 install
| (0) | Free
Automatically configures project settings and environment for optimal development in VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Auto Configurator

Auto Configurator is a Visual Studio Code extension that automatically ensures specific configuration files exist in your workspace, based on customizable rules. This helps you maintain consistent project settings and environment files across your team or multiple projects.

Features

  • Automatically creates or appends to files in your workspace based on rules you define.
  • Supports conditional file creation using rules such as:
    • File existence (glob or direct path)
    • Folder existence
    • Environment variable presence
    • VS Code setting values
    • File content matching
    • Workspace folder name
  • Appends content to files only if not already present.
  • Logs all actions to the "Auto Configurator" output channel.

Getting Started

  1. Install the extension in VS Code.
  2. Add configuration to your workspace settings (.vscode/settings.json or user settings):
"autoConfigurator.files": [
	{
		"path": ".csharpierrc",
		"content": "{\"printWidth\": 120}",
		"rules": [
			{ "type": "fileExistsGlob", "value": "**/*.csproj" }
		]
	},
	{
		"path": ".gitignore",
		"content": "\n.csharpierrc",
		"append": true,
		"rules": [
			{ "type": "fileExistsGlob", "value": ".csharpierrc" }
		]
	}
]

Configuration

This extension contributes the following setting:

  • autoConfigurator.files:
    An array of file configuration objects. Each object can have:
    • path (string, required): File path relative to the workspace root.
    • content (string, optional): Content to write or append.
    • append (boolean, optional): If true, appends content instead of overwriting.
    • rules (array, optional): List of rules that must be met for the file to be created/appended.

Supported rule types:

  • fileNotExists: File does not exist.
  • envVarSet: Environment variable is set.
  • fileExistsGlob: Any file matching the glob exists.
  • folderExists: Folder exists.
  • settingEquals: VS Code setting equals a value (key=value).
  • fileContains: File contains a string (relativePath|searchString).
  • workspaceName: Workspace folder name matches.

Output

All actions and rule checks are logged to the "Auto Configurator" output channel in VS Code.

Development

  • Run npm install to install dependencies.
  • Use npm run watch to compile TypeScript in watch mode.
  • Press F5 in VS Code to launch a new Extension Development Host with your extension loaded.
  • Tests are in src/test/extension.test.ts.

License

MIT


Enjoy using Auto Configurator!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft