Using delegate in editor changes indent
SeKo
Hi,when I use code like this:
myButton.AddHandler_Click(SwissAddonFramework.UI.Components.ModeComponent.FormModes.ALL, null, new SwissAddonFramework.UI.EventHandling.ItemEvents.ClickEventHandler(delegate(SwissAddonFramework.UI.EventHandling.ItemEvents.Click eventVal)
{
try{
<CODE GOES HERE>
}catch(Exception ex){
MessageBox.Show(ex.ToString(), "ok");
}
}));
the indentation is wrong. The next lines have a much bigger indentation then they should have. If you have several handlers in one editor, it's getting very annoying to write code since it jumps a big way to the right.
Can I change this somewhere? Maybe disable the automatic indentation?
Tnx!
Sebastiaan
Michael Egloff
Hallo Sebastiaan,you cannot change the behaviour of the indentation. This is a bug of the editor we are using in customize. The editor (the part which is responsible for the style of the code) is handling the delegates not properly.
You just have to live with it.
SeKo
Ok! Thanks for the reply!Remo Kottonau
I wonder if this is going to be fixed, ever. Any possibility to disable indentation completely?
0
Please sign in to leave a comment.
Comments
0 comments