Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Editor - bracket intellisense?
Message
From
25/07/2003 10:14:27
 
 
To
24/07/2003 20:54:11
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00813360
Message ID:
00813482
Views:
9
Charles,

VS.NET macros allow you to augment the standard behaviour and create things like code generators etc. You could quite easily create/record a macro to simulate the functionality required.

The following is a simple recorded macro (except for the addition of the SmartFormat() call) that emulates the closing brase. Obviously this took about 10 seconds and is a solution worthy of 10 seconds worth of input but it illustrates the point.
DTE.ActiveDocument.Selection.Text = "{"
DTE.ActiveDocument.Selection.NewLine()
DTE.ActiveDocument.Selection.Text = "// Insr"
DTE.ActiveDocument.Selection.DeleteLeft(4)
DTE.ActiveDocument.Selection.Text = "TOFD"
DTE.ActiveDocument.Selection.DeleteLeft(2)
DTE.ActiveDocument.Selection.Text = "DO:"
DTE.ActiveDocument.Selection.NewLine()
DTE.ActiveDocument.Selection.Text = "}"
DTE.ActiveDocument.Selection.LineUp()
DTE.ActiveDocument.Selection.EndOfLine()
DTE.ActiveDocument.Selection.NewLine()
DTE.ActiveDocument.Selection.SmartFormat()
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform