editorconfig Questions
5
Solved
I use VS Code as editor. We have a .editorconfig file with format configs within. We all use in our editors the extenion EditorConfig to format our HTML and CSS general. I have installed the extens...
Supremacist asked 20/10, 2017 at 9:25
3
Solved
EDIT: I'm using VS Code.
I'm getting the following warning for my code that prefixes private fields with an underscore:
Naming rule violation: Prefix '_' is not expected [MyProject]csharp(IDE1006)
...
Cimabue asked 6/7, 2021 at 8:9
2
Hi I am using Visual Studio 2022. I want to share code cleanup on save setting with my team. How can i do it? I tried to export settings and import it but without success.
Lodgment asked 19/8, 2022 at 12:14
2
Solved
Micrsoft provides bunch of coding settings for EditorConfig
.NET coding convention settings for EditorConfig
But cannot find the way to create a rule, which will suggest developer to add empty li...
Rooke asked 17/2, 2019 at 2:2
2
Solved
The picture below shows the warning I keep getting in Visual Studio 2017:
I got this off some website and I have tried all sorts of things. Does anyone know how I can get rid of this?
Here is m...
Squarrose asked 20/12, 2018 at 9:54
5
Solved
How and where i can to disable filename in ktlint?
I don t want to rename this class, but get next error:
interface MainActivityContract should be declared in a file named MainActivityContract....
Runin asked 7/8, 2019 at 13:10
3
Solved
I have been upgrading a project and since the latest version of Visual Studio 2019 was installed have found the following file being output to disk
MyProjectName.GeneratedMSBuildEditorConfig.editor...
Sprawl asked 7/10, 2020 at 10:2
2
When formatting and auto fixing "linting" errors in C# files in VSCode it seems to discard my unused variables. Basically it puts _ = in front of everything.
It does this because csharp_s...
Deferent asked 27/4, 2022 at 13:38
5
I and my team spent the last few months defining rules about C# code formatting and style for our project, so we ended up with an .editorconfig file.
Moreover, we all installed the extension Produc...
Coltson asked 23/12, 2021 at 10:40
1
My Windows is localized German, but I use the English language pack for Visual Studio and code and documentation is written English first (i.e. we only use German for domain terms without a good En...
Verdellverderer asked 9/3, 2023 at 10:13
2
Our team want to enforce styling rules in our C# project. I read somewhere some time that Microsoft said that ".editorconfig is the future" so we want to use this. NOTE: We don't want to use ReShar...
Saito asked 29/3, 2019 at 9:2
4
Solved
Using Visual Studio Community 2022, version 17.4.4.
I just created a WPF (.NET Framework) solution using the built in VS template. To this solution, I wanted to add a .editorconfig file to aid with...
Yep asked 22/1, 2023 at 15:53
1
With an .editorconfig file, I can configure among other things how Visual Studio should indent code.
Now, the .NET Compiler Platform's .editorconfig file as well as several other examples found on...
Arbiter asked 7/6, 2018 at 13:37
5
I have the following version of Visual Studio:
Microsoft Visual Studio Community 2017 Version 15.1 (26403.7) Release
VisualStudio.15.Release/15.1.0+26403.7
I created a new project and added a .ed...
Leund asked 25/4, 2017 at 13:56
2
In a maven project (backend java + frontend angular) I would like to add a coding style and format code automatically (many file types), with a git pre-commit hook for example or/and at compile tim...
Dissension asked 21/3, 2023 at 12:48
2
I would like to configure my EditorConfig (https://editorconfig.org/) configuration in a way that the C# code snippet var v = new Object(kind) {Id = num++}; is automatically reformatted to var v = ...
Bushwhacker asked 9/11, 2018 at 19:24
5
Solved
My project has .editorconfig file with:
[*.{js}]
charset = utf-8
indent_style = space
indent_size = 4
I thought this will force my Visual Studio Code to use indent style space with four spaces.
I ...
Predominance asked 17/11, 2017 at 18:45
3
My team maintains several Java repositories in GitHub. Each of them has an .editorconfig file in the root folder and they're all exactly the same. This makes maintaining them a bit of a pain becaus...
Ailment asked 29/3, 2018 at 22:36
1
Solved
I'm using an .editorconfig file on a global level for the entire solution. This is working fine so far. The existing rules do work.
Now I want a rule for VSTHRD200 for my test projects and classes,...
Millet asked 12/5, 2021 at 6:24
2
Solved
In Visual studio 2022, can you setup a solution wide .editorconfig file and and then project specific .editorconfig files that override or add to the solution wide one?
In my case, I am looking to ...
Lindeman asked 25/12, 2022 at 4:58
0
I want the build of my project to fail if there are unused usings. In csproj I have added:
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<GenerateDocumentationFile>true&...
Oxfordshire asked 14/12, 2022 at 9:58
3
The problem is that not all visual studio suggestions, warnings and/or errors are shown on solution build.
Let's say that on solution build, a total of 22 warnings are shown. After solution build...
Perrone asked 31/10, 2019 at 13:1
1
Solved
Is there any option on editor config to format attributes like in "Example1" instead of "Example2"?
The example below is C#.
Imperative asked 1/12, 2022 at 19:6
5
Solved
Is it possible to ignore/exclude file/folder from .editorconfig?
Reason: I have a /vendor folder with third party files. I don't want the folder to inherit any of my .editorconfig configs.
I foun...
Cogon asked 18/5, 2015 at 18:27
2
Solved
How do I import code conventions (code formatting settings) from an EditorConfig file into Visual Studio?
I would like to have one .editorconfig file for all solutions and not one per project.
Lover asked 30/10, 2019 at 13:14
1 Next >
© 2022 - 2025 — McMap. All rights reserved.