Project
ReSharper
Priority
Normal
Type
Feature
Fix versions
Mirabile Futurum
State
Open
Assignee
Ilya Ryzhenkov
Subsystem
Code Cleanup
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Valentin Kipiatkov
    5 years ago (05 Aug 2006 01:52)
  • Updated by   Vladimir Reshetnikov
    19 months ago (14 Oct 2010 11:56)
  • Jira: RSRP-5376
    (history, comments)
 
RSRP-5376 Formatter settings: add option to not indent constructs at first column
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
User reported:

Sometimes when I'm testing a section of code I put in a Debug.Writeline statement at the beginning of the line. I do this so that I can easily spot it when scanning lines of code as being a temporary line that I will want to get rid of a some point. However formatting the source of course moves this line back to the current indentation.
Also if I type in multiple lines starting at the first column such as if (i == 1) {
Debug.WriteLine("first column reached"); } then as soon as the closing brace is entered, the whole lot gets moved back to the correct indentation level

Would it be possible to have an option that when a line or block begins at the first column then the indentation level is temporarily ignored for formatting?
(Since using statements, namespace statements and non-namespaced declaration statements would normally indent to level 0 anyway I suspect this would have no affect on them and so might be relatively easy to implement)
Comments (0)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Issue has no comments