codecadwallader / codemaid

CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
http://www.codemaid.net
GNU Lesser General Public License v3.0
1.88k stars 352 forks source link

Additional "Insert" menu option for toggling #1054

Open B00MxHartShotx opened 1 month ago

B00MxHartShotx commented 1 month ago

Thank you for the time and potential consideration; this is my first step into Open Source contribution.

Environment

Description

You'll have to excuse my lack of a code sample as this is something beyond my capabilities. I'm a self-taught Unity developer that has just been recommended CodeMaid only yesterday and I love it. I feel that it offloads the organization of my code and has already kept me more on task as such.

I use expression body methods within my codebase for organization. When I was perusing the available options for CodeMaid, under Cleaning -> Insert to be more specific, I was able to find a toggle for blank line padding before&&after methods. This is fantastic with block body methods, as it gives the eyes space to separate, but removes the option to stack my one-liners. Would a toggle for block body methods && a toggle for expression body methods be a possibility?

Steps to recreate

  1. Block body methods are awesome when spaced
  2. Expression body methods are awesome when !spaced
  3. Would love 2 toggles
  4. Instead of 1 toggle?

Current behavior

I believe that I've outlined above, but currently there is a single toggle in Cleaning -> Insert options for space before/after methods

Expected (wished) behavior

I believe that I've outlined above, I wish there were two toggles in Cleaning -> Insert options for space before/after methods - breaking the existing one for block/expression body methods

Thank you again. Be safe!