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 hide the "Generate editorconfig" #331

Open
2 tasks done
Paradoxis opened this issue Feb 19, 2022 · 1 comment
Open
2 tasks done

Feature request: Ability to hide the "Generate editorconfig" #331

Paradoxis opened this issue Feb 19, 2022 · 1 comment

Comments

@Paradoxis
Copy link

Please fill-in this template.

  • I have a question that is specific to this extension; thus, inappropriate for the main EditorConfig issue tracker.
  • I tried running code --disable-extensions and the issue did NOT present itself.

Issue

I was wondering if it's possible to add an option which disables the Generate .editorconfig right click action in the explorer tab. I keep accidentally clicking it when right clicking somewhere and letting go right above the button (which is generally directly afterwards) due to the way my Linux distro handles right click actions (still figuring out how to change that behavior).

I would like to use editorconfig to enforce code style, but have the ability to hide this option as I keep accidentally keep committing template editorconfig files in random directories. Screenshot for reference:

image

I thought setting the following settings would do the trick but I was mistaken:

{
    "editorconfig.generateAuto": false,
    "editorconfig.template": ""
}

Thanks and have a nice day :)

Version information

Visual Studio Code editorconfig-vscode
Version 1.64.2 v0.16.4
@gian1200
Copy link

In addition to that, if the folder already has the .editorconfig file, then there is no neeed to show the option there.

I get the following error when right clicking on a project that aready has the file in the root:

image

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

2 participants