Comments (2)
I don’t have a strong opinion about it but it’s the style of most codebases, including Roslyn. I’ll have to collect more data before deciding if it should be switched off by default or even configurable. As you know, one of the motivations behind Prettier is to leave very little space for choice.
In the meantime, I think you can disable this behavior by adding a preprecessor directive (it won’t sort them at all).
from prettier-plugin-csharp.
Thanks for the quick response. I think you're right in that most C# code is still using the default of sorting the System namespace first, so for most people prettier-plugin-csharp
is doing the correct thing. I still think that this should be configurable, but I there are probably other things that are more urgent than this.
from prettier-plugin-csharp.
Related Issues (20)
- How to install and use as plugin in VSCode? HOT 2
- Rename project? HOT 1
- Support for C# 7 local functions HOT 2
- String interpolation handled incorrectly HOT 1
- Can I run this directly from Visual Studio? Are there plans for an extension? HOT 3
- Are you accepting contributors? HOT 2
- Bug: Embedded Empty Statements are deleted HOT 2
- Mixed tabs & spaces HOT 1
- Comments inside empty class definitions don't get printed HOT 1
- Empty braces are not consistently formatted HOT 2
- How to install - doesn't seem to work HOT 2
- JavaScript heap out of memory when importing HOT 7
- question: support for different csharp versions HOT 3
- Inconsistent #if ... #endif blocks reformatting HOT 2
- Activity HOT 2
- Unable to run HOT 1
- Using formatting HOT 5
- no viable alternative at input 'default;' HOT 1
- What is the current status on this plugin? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prettier-plugin-csharp.