Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Editor - bracket intellisense?
Message
De
25/07/2003 10:14:27
 
 
À
24/07/2003 20:54:11
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00813360
Message ID:
00813482
Vues:
10
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()
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform