@normalmode It looks like we have `insert_final_newline = false` in #editorconfig and nvim is interpreting that as not only don't add a newline if I didn't, but remove it if it was there already. Is that correct behavior?
@ovid #EditorConfig: learn it, set it in your projects, enforce it (many editors “just work” with it): https://editorconfig.org
@brion You can fix it! Setup https://editorconfig.org/ for your editor and propose upstream a patch introducing an `.editorconfig` indicating their 2-space indent:
root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 2
#EditorConfig , you will never look back!
Another drawback of generating code: It does not automatically adhere to your coding style. So just having an #EditorConfig is not enough, you absolutely need something else that fixes styling for you. That is especially a problem for something like #YAML, for which I not always have some linter setup.
Began adding some of the code style rules in the category "Unnecesary code" rules to my EditorConfig Wizard. Still, more to add. 😁
Project: https://github.com/KristofferStrube/EditorConfigWizard
Demo: https://kristofferstrube.github.io/EditorConfigWizard/wizard
#editorconfig #blazor #dotnet #csharp
#editorconfig #blazor #dotnet #csharp
I'm trying to come up with some sample code that would make the two EditorConfig rule options at the bottom distinguishable. Is there some example or are they actually just the same?
#dotnet #csharp #editorconfig
#CSharpForMarkup 2 for #WinUI3 and @unoplatform is coming along nicely🙂
-🔥Windows C# #hotreload updates UI on Ctrl+S
- All #dotnet 7 target platforms, #csharp 11
- Nested view files in sln explorer
- Fully #nullable + #editorconfig enabled dotnet new template
#CSharpForMarkup #WinUI3 #HotReload #dotnet #csharp #nullable #editorconfig
Picked up some tasks on a #dotnet project in my #DayJob and I'm really #triggered by the way someone has set it up. I really dislike some of the #fxcop rules and #editorconfig settings that are being enforced. My #resharper is going ballistic. I'm fighting the urge to change all the settings to follow the dotnet style guidlines. #MustNotRefactor
#dotnet #dayjob #triggered #fxcop #editorconfig #resharper #mustnotrefactor
Just stumbled upon https://editorconfig.org/ searching for ways to support different people in a project with basic formatting rules. Looks like it's spot on. (I haven't dived in yet)
I'm a bit surprised I can't recall seeing this before. Is it me, or is this just not used much?
[RSS] "EditorConfig, restez consistants sur l’écriture du code !" https://blog.seboss666.info/2019/03/editorconfig-restez-consistants-sur-lecriture-du-code/ "Le hasard fait parfois bien les choses. En faisant le ménage dans mes flux rss inactifs, je découvre..." #developpement #editorconfig #sublimetext #convention #extension #astuces #projets #code
#developpement #editorconfig #sublimetext #convention #extension #astuces #projets #code