Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Ability to set a .editorconfig to use #354

Open
bstordrup opened this issue Aug 21, 2023 · 0 comments
Open

Feature request: Ability to set a .editorconfig to use #354

bstordrup opened this issue Aug 21, 2023 · 0 comments

Comments

@bstordrup
Copy link

Feature request

Visual Studio Code editorconfig-vscode
Version 1.81.1 0.16.4

The folder where I open Visual Studio Code is not the repository root (as Visual Studio Code is only used for a BuildScripts folder with Powershell files), and the repository itself is huge (contains 150+ projects in the solution), so I would very much avoid opening Visual Studio Code directly in the repository root.

The .editorconfig file is located in the repository root and contains these settings for .ps1 files

###############################################################################
#
# PowerShell files
#
###############################################################################

[*.{ps1}]
indent_size = 4
tab_width = 4

It also contains the root = true line.

When files are formatted in Visual Studio Code, it uses an indent size of 2, so I don't think the .editorconfig from parent folder is being read. So it would be nice to be able to specify either a specific .editorconfig file to use or have it search upwards in the file system until it either finds a root .editorconfig or ends up in the file system root folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant