We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Bug with Code Snippets and Autoindentation

Thread ID:





69106 Oct 15,2007 12:40 PM UTC Oct 18,2007 12:03 AM UTC WinForms 1
Tags: EditControl
Stéphane BLANC
Asked On October 15, 2007 12:40 PM UTC


To reproduce it, open the indentation guidelines demo.

Enter if, press tab
You will have the following display :

if (true)


instead of

if (true)


(there is a tab before { and } )

J.Nagarajan [Syncfusion]
Replied On October 18, 2007 12:03 AM UTC

Hi Stephane,

You can avoid this additional tab before the braces by adding the following code to your form's constructor. Please refer the below sample that demonstrates this.


CodeSnippet snippet = this.editControl1.GetSnippetByTitle("if");
snippet.Code = snippet.Code.Replace("\n\t", "\n");

I have attached the sample for your reference.


Please let me know if you have any other questions.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon