This project is read-only.

Code Snippets

Topics: User Forum
Feb 25, 2010 at 11:16 PM

Hello All,

   I am trying to use the "code snippets" function but i am having no success.

For example i have created a sample project (in C#) with just a for and a button. when the button it clicked, it executes the following code

 

this.scintilla1.Snippets.ShowSnippetList();

 

Now i would expect this to open the snippets window...but it doesn't.

Any suggestions as to how the snippets function is meant to be used?

 

Thanks

Stuart

Feb 25, 2010 at 11:49 PM

That should give you what you are expecting provided you have the SnippetList populated. If you set the language to c# by using ConfigrationManager.Language = "cs"; it will automatically load some snippets I built in.