• Products
  • Download
  • Purchase
  • Support
  • Company
Actipro Software company logo
Twitter Follow Actipro RSS Subscribe (RSS Feed)

The Actipro Blog

Tag Cloud

  • blog
  • docking
  • editors
  • intelliprompt
  • micro charts
  • navigation
  • propertygrid
  • ribbon
  • shared library
  • silverlight
  • syntaxeditor
  • themes
  • views
  • web site
  • winforms
  • winrt
  • wpf

Twitter Feed

Tweets by @Actipro

Month List

  • 2013
    • June (3)
    • May (7)
    • April (7)
    • March (9)
    • February (2)
    • January (7)
  • 2012
    • December (4)
    • November (7)
    • October (5)
    • September (7)
    • August (5)
    • July (9)
    • June (11)
    • May (12)
    • April (6)
    • March (11)
    • February (11)
    • January (2)
  • 2011
    • December (2)
    • November (7)
    • October (2)
    • September (1)
    • August (5)
    • July (3)
    • June (6)
    • May (5)
    • April (8)
    • March (4)
    • February (5)
    • January (9)
  • 2010
    • December (9)
    • November (10)
    • October (4)
    • September (8)
    • August (12)
    • July (9)
    • June (7)
    • May (6)
    • April (7)
    • March (6)
    • February (6)
    • January (4)
  • 2009
    • December (2)
    • November (2)
    • October (12)
    • September (3)
    • August (11)
    • July (10)
    • June (6)
    • May (3)
    • April (7)
    • March (6)
    • February (8)
    • January (10)
  • 2008
    • December (10)
    • November (2)
    • October (3)
    • September (5)
    • August (5)
    • July (8)
    • June (4)
    • May (4)
    • April (10)
    • March (8)
    • February (1)
    • January (2)

Category List

  • RSS feed for ActiproActipro (406)
  • RSS feed for AppsApps (8)
  • RSS feed for Blog SummaryBlog Summary (19)
  • RSS feed for Customer ShowcaseCustomer Showcase (1)
  • RSS feed for GeneralGeneral (43)
  • RSS feed for In developmentIn development (198)
  • RSS feed for New featuresNew features (211)
  • RSS feed for New productNew product (56)
  • RSS feed for PromotionPromotion (2)
  • RSS feed for SilverlightSilverlight (146)
  • RSS feed for Tips and tricksTips and tricks (4)
  • RSS feed for Visual Studio 2008Visual Studio 2008 (2)
  • RSS feed for Windows FormsWindows Forms (28)
  • RSS feed for Windows VistaWindows Vista (10)
  • RSS feed for WinRTWinRT (39)
  • RSS feed for WPFWPF (318)
  • RSS feed for XAMLXAML (34)

About Us

Actipro Software is a leading provider of .NET user interface controls for the WPF, WinRT XAML, Silverlight, and WinForms frameworks, and is most well-known for their SyntaxEditor syntax-highlighting code editor control.

Please take some time to learn more about us and our product offerings.

SyntaxEditor IntelliPrompt Code Snippets

April 5, 2012 at 7:47 AM
by Bill Henning (Actipro)

BlogPostBanner

Today I'd like to show a preview of the next huge feature area coming to SyntaxEditor for WPF and Silverlight:  IntelliPrompt code snippets!

UPDATE: Code snippet features are now live for WPF and Silverlight with the release of version 2012.1!

Overview

Code snippets are predefined templates of code that can be inserted into the document to help the end user develop code more efficiently.  They can contain multiple fields and the end user can tab between the fields while the code snippet is active.  Dependent fields can be set up such that when the first field's value is changed, all the dependent fields update their values as well.

Activating Code Snippets

Via Shortcuts

Code snippets can be activated by typing their shortcut and pressing Tab immediately after.

.NET Languages Add-on Integration

The .NET Languages Add-on has been enhanced to automatically show available code snippets in the completion list displayed by Ctrl+Space.  This feature works in both C# and Visual Basic.

CodeSnippets1

Press Tab to insert the code snippet's shortcut text.  Then Tab again to activate it per above.

Insert Snippet Popup

An Insert Snippet popup (another way to insert code snippets) probably won't make the first 2012.1 release, but it is planned for future implementation.

Editing a Template

Once a code snippet has been activated, it's template code is inserted into the editor and the included fields are highlighted:

CodeSnippets2

In this screen, we inserted a code snippet for a C# for statement.  Note how there are two fields: index and count.  The index field shows up three times in the template.  The second and third times have dotted borders, meaning they are dependent on the first field. 

CodeSnippets3

In this screen, we have changed the index field to have a value of i.

CodeSnippets4

Next, the Tab key is pressed to move focus to the next field in the template, which is count.  When the caret leaves a field that has been edited, the related dependent fields' values update.  In this sample, all the index fields now have the value i.

CodeSnippets5

In this final screen, we pressed Enter to exit template editing mode.  The caret automatically moves to an offset designated by the code snippet.  In this case, it was told to move within the for block, and indented a tab stop.

ToolTips

When hovering the mouse over a code snippet template field in the editor, if a tooltip description for the field was specified in the code snippet, it will be displayed.

Object Model

Our code snippet object model loads and saves to the exact same code snippet file format found in Visual Studio. This makes it easy to import and reuse the hundreds of code snippets distributed with Visual Studio and found out on the web.

Code snippet folder and file hierarchies can be loaded from the file system with one easy call, or can be built completely programmatically.

Events

A new event sink is included that allows languages to listen to multiple code snippet-related events, such as when a new code snippet template is activating, or a new field is activated, etc.

Summary

IntelliPrompt code snippets are a very handy feature for end users.  And with our 100% compatibility with Visual Studio code snippets, it's very easy to add pre-built code snippets to your own apps. 

For those of you with custom language implementations (not C#/VB), code snippets can be used with your language as well.

We're excited to get this into your hands soon.  It will be included in the upcoming 2012.1 versions of our WPF and Silverlight controls.

UPDATE: Code snippet features are now live for WPF and Silverlight with the release of version 2012.1!

TaskDownload TaskLiveDemo TaskBuyNow

Tags: wpf, silverlight, syntaxeditor, intelliprompt
Filed under: Actipro, In development, New features, WPF, Silverlight
Submit to DotNetKicks...
Permalink | Comments (5)

Related posts

Code reviewing in SyntaxEditor for WPF, demoing upcoming intra-text adornments featuresAs mentioned in our previous blog post, we’ve been hard at work on some very major new features for ...First video of SyntaxEditor for Silverlight - Syntax-highlighting code editor controlA couple months ago we make a post on our blog asking if anyone would be interested in a port of our...SyntaxEditor .NET Languages Add-on: Working Towards Automated IntelliPrompt We’ve been hard at work over the past several weeks on the SyntaxEditor .NET Languages Add-on, for...

Comments

April 9, 2012 at 22:00  

zyko

If i have a code that uses a function where there should be documentation for parameters available anything is ok on writing the call of the function.
while typing , help is displayed for the next parameter.
fe

/// <summary>
/// the worldbest function to use
/// </summary>
/// <param name="first"></param>
/// <param name="second"></param>
private void callMeToGetFun(string first, string second) {
}

...
callMeToGetFun("myFirst","mySecond")
...

but if the code has been written an i'm movin above fe. the 2nd argument of the function LATER i cant's see any help.
also CTRL+SPACE does nothing.

the only thing i know till now is to delete the ',' again, and enter it again.
is there any other shortcut for this that someone can use instead?

zyko Austria

April 10, 2012 at 01:55  

Bill Henning (Actipro)

Hi Helmut,

You can use Ctrl+Shift+Space to reopen a parameter info session where applicable.

Bill Henning (Actipro) United States

April 10, 2012 at 02:19  

zyko

Hi Bill,

You made my day - once again :-o

Ctrl+Shift+Space WORKS

THX Smile
  

zyko Germany

July 2, 2012 at 04:07  

trackback

Actipro Blog 2012 Q2 Posting Summary

Actipro Blog 2012 Q2 Posting Summary

The Actipro Blog - WPF, Silverlight, and WinForms Development

July 2, 2012 at 15:30  

pingback

Pingback from mywebtips.net

Actipro Blog 2012 Q2 Posting Summary | پویندگان سپهر آپادانا

mywebtips.net

Comments are closed
Copyright © 1999-2013 Actipro Software LLC. All rights reserved.
Home Actipro Software | Products | Download | Contact Us