Indentation in case statement #108
Description
SD-1279, originally created on 1/21/2007 21:58:16 by Matt Ward
See http://community.sharpdevelop.net/forums/thread/14820.aspx
The case statement indentation follows SharpDevelop coding guidelines,
however it should at least honour the indentation the user has changed
it to.
Comment from Matt Ward on 1/21/2007 21:59:50:
Looking at the IndentationReformatter class, to stop the indent remove
lastRealChar != ':' check from:
if (doc.ReadOnly) {
// We can't change the current line, but we should
accept the existing
// indentation if possible (=if the current statement
is not a multiline
// statement).
if (!oldBlock.Continuation && !oldBlock.OneLineBlock
&&
oldBlock.StartLine == block.StartLine &&
block.StartLine < doc.LineNumber && lastRealChar
!= ':')
{
Currently there are no indentation configuration options in
SharpDevelop (code generation options are not used for this). So a short
term solution would be to get the indentation to honour the level set by
the user. A longer term solution would be to allow the user to configure
various indentation/formatting settings.