code-formatting
Method to remove specific obsolete lines of code from an entire codebase?
I have some code: #if SILOG SiAu开发者_如何学Cto.Main.LogException(ex); // some other lines #endif What would be the easiest way to remove surrounding #if from my entire codebase, i.e., end up with[详细]
2023-01-27 07:07 分类:问答Disable *all* code formatting in Visual Studio 2010
I wish to disable all code formatting in Visual Studio 2010, with the in开发者_开发百科tention of selectively switching options back on as I see fit.[详细]
2023-01-27 05:36 分类:问答What is the correct way to break a line of Perl code into two?
$ cat temp.pl use strict; use warnings; print \"1\\n\"; print \"hello, world\\n\"; print \"2\\n\"; print \"hello,[详细]
2023-01-20 12:55 分类:问答Writing a code beautifier [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing[详细]
2023-01-19 06:10 分类:问答How to have the formatter wrap code with IntelliJ?
I\'m not able to format my code in Intelli开发者_如何学CJ. I can see the margin line (by default at 120 columns) but it seems that the activation from the menu:[详细]
2023-01-18 03:29 分类:问答Is there a way to prevent Visual Studio 2010 formatting C# code in ASP.NET MVC views?
I\'d like Visual Studio to continue automatically forma开发者_运维问答tting my .cs files, but is there a way to prevent it auto-formatting C# code in between the <% %> tags in ASP.NET MVC views[详细]
2023-01-18 02:47 分类:问答Resharper indentation
How do I change the basic Resharper indentation options? I have noticed that Resharper\'s indentation settings differ 开发者_JAVA百科from VS 2010\'s--VS uses four spaces for an indent, and it\'s hard[详细]
2023-01-17 17:56 分类:问答What R# setting is reformatting this line?
VS2010 / R#5.1 I have this \"line\" of code: With.Mocks(_mocks).Expecting(() => { _fooServiceMock.Expect(x => x.FooMethod()).Return(fooMockData);[详细]
2023-01-17 04:04 分类:问答Can I run the Eclipse c++ Formatters from the command line
I found this page which shows how to run the Java formatter but I cannot find s开发者_如何学Cimilar resources to run the built-in C/C++ formatters.[详细]
2023-01-17 00:55 分类:问答Split Ruby regex over multiple lines
This might not be quite the question you\'re expecting! I don\'t want a regex that will match over line-breaks; instead, I want to write a long regex that, for readability, I\'d like to split onto mul[详细]
2023-01-16 21:01 分类:问答