Posts

Showing posts from January, 2018

Inserting File Headers using ReSharper Code Cleanup

Image
Step 1: Edit ReSharper Options In Visual Studio select ReSharper > Options Select the Code Editing > File Header Text option. Fill in the File Header text as shown: Step 2: Update the settings Select Ctrl + E, Ctrl + C For my particular setup I needed to create a Duplicate of the built-in Full Cleanup: So press the Duplicate button And then click the Configure Button. Make sure the 'Update file header' is checked: Step 3: Appy it to your code Open the code. Example: [code language="csharp"] namespace Model.Application { public class VisibilitySettings { public bool TabsVisible { get; set; } public bool BrowserVisible { get; set; } public bool MenuOptionsVisible { get; set; } public bool UpdateUrl { get; set; } public string Url { get; set; } } } [/code] Select Ctrl + E, Ctrl + C And on applying see that the header text is inserted: [code language="csharp"] #region (c) 2017 Glob...