Questions tagged [codemaid]

An open source visual studio extension to cleanup, dig through and simplify C#, C++, F#, VB, PHP, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.

12 questions
10
votes
1 answer

Visual Studio: prevent collapsing folders in solution explorer when opened

Every time I open a project in Visual Studio 2022 all folders in the solution explorer tree are collapsing. This is very annoying and interrupts my workflow. I couldn't find any setting for this. Is there a way to prevent this behavior? This also…
arkord
  • 201
  • 1
  • 12
8
votes
1 answer

Cyclomatic complexity, how much is too much?

Just wondering, I have installed CodeMaid for Visual Studio and getting code quality stats on a large codebase. i see numbers ranging from 1 to 300 on many of the methods. How much is too much? Can we (or should we) even have a threshold for…
Ahsan
  • 2,488
  • 2
  • 22
  • 44
6
votes
1 answer

Visual Studio 2015 RC missing using option in quick actions

I have no idea what changed, but either using Ctrl+. or right clicking to bring up the quick actions in VS2015 RC (14.0.22823.1) on a token that I haven't added the right using statement used to give me an option to automatically add it for me,…
4
votes
3 answers

How to Remove Braces on Single-Line Statement?

Could anyone advise how to remove braces from any single-line statements? (Excluding the obvious just delete the braces manually) Using C# in Visual Studio. So instead of: if (thingy is null) { throw new…
craig157
  • 355
  • 1
  • 3
  • 18
4
votes
4 answers

CodeMaid Toolbar drop-down is not appearing in Visual Studio 2017

Environment Visual Studio version: Professional 2017 15.4.4 CodeMaid version: 10.4.53 Code language: C# I have CodeMaid installed and enabled but it is not showing on toolbar. Current behavior I recently had to reinstall Visual Studio 2017 and…
Wesley Briney
  • 51
  • 1
  • 5
4
votes
1 answer

Cyclomatic Complexity: Resharper vs CodeMaid

I've been using both CodeMaid and Resharper for some time now, and noticed they both calculate Cyclomatic Complexity. Although, their calculation always differ, so I'm thinking that their calculating logic also does. But, to your experience, which…
3
votes
2 answers

How do you make Visual Studio/CodeMaid insert newlines before and after #region and #endregion?

When I hit Ctrl+E+D or Ctrl+M+Space (CodeMaid), I want Visual Studio to add newlines before and after #region and #endregion in following languages: C#, CSS, JS How I can make it happen? For ex: #region Codes #endregion BTW, now Visual Studio…
Mehdi Dehghani
  • 10,970
  • 6
  • 59
  • 64
2
votes
1 answer

How to change default access modifer added by CodeMaid

I am using the Visual Studio CodeMaid plugin currently and when I press Ctrl+m+space to cleanup my active document it adds a default access modifier of internal to my class/interface/etc.. I've looked through the options to change it to be public,…
httpNick
  • 2,524
  • 1
  • 22
  • 34
1
vote
2 answers

Codemaid did not load correctly

I have MSVS 2013 and Windows 7. I'v tried to install Codemaid, but there is a mistake, when I launch a studio: The 'CodemaidPackage' package did not load correctly. The problem may have been caused by a configuration change or by the installation…
Dmitrii
  • 618
  • 2
  • 7
  • 19
1
vote
1 answer

Can ReSharper insert/normalize regions like CodeMaid does?

I tried to clean up entire codebase with Resharper's "Default configuration with regions". But Resharper is not creating any new regions. CodeMaid works great but I don't want to use both tools - CodeMaid & Resharper. I am primarily using CodeMaid…
user1
  • 4,031
  • 8
  • 37
  • 66
1
vote
1 answer

How to disable the alignment of arguments in functions with CodeMaid in Visual Studio?

For example when I want to save something like this: SummaryInfo(int succeededFiles, int skippedFiles, int failedFiles, int alreadyProcessedFiles, int succeededFolders ); But…
dreinoso
  • 1,479
  • 17
  • 26
1
vote
1 answer

Resharper sort properties, fields by name on file saving

I use Resharper 8.2 with Visual Studio 2013 Ultimate. Is it possible to setup this environment to sort method, fields, property by alphabet, but only when I save file? I know that CodeMaid has this feature.
Jacek
  • 11,661
  • 23
  • 69
  • 123