Older/ReSharper20173CSharp/Formatter/BlogException.cs (11 lines of code) (raw):

using System; namespace ReSharper20173CSharp.Deconstructors.Formatter { // Control formatter using comments // // 1. Remove any last } here, then type it again. Note R# reformats the entire thing to: // { // } // // Ideally we want to keep the one-liners in this class! // // 2. Add // @formatter:off at the start of class or method, and // @formatter:on at the end. // If we now do the } thing, no reformatting is done. // // 3. Instead of turning it off, // we could also add "// @formatter:place_simple_method_on_single_line true" instead. // // More options at https://www.jetbrains.com/help/resharper/EditorConfig_Properties.html. // [AT]formatter:off public class BlogPostException : Exception { public BlogPostException() { } public BlogPostException(string message) : base(message) { } public BlogPostException(string message, Exception innerException) : base(message, innerException) { } } // [AT]formatter:on }