Click or drag to resize

Macros

Tool: Macros for Visual Studio

An extension for Visual Studio that enables the use of macros in the IDE. The extension can record most of the features in Visual Studio including text editing operations.

Installation: menu Tools, Extensions and Updates..., window Extensions and Updates is displayed, select list item Online and search to Macros for Visual Studio, select the right item and push button Download

Information about "Macros for Visual Studio"

Macros about task handling

Example - DTE macro: write a comment task of e.g. HACK

JavaScript
//* set date *
var date = new Date();

var day = date.getDate();
var month = date.getMonth() + 1;
var year = date.getYear();

// Add a zero if single digit
if (day <= 9) day = "0" + day;
if (month <= 9) month = "0" + month;

var lText = "finish: ";
Macro.InsertText("// HACK: " + lText + " [" + day + "." + month + "." + year + "]");
dte.ActiveDocument.Selection.CharLeft(false, 13);

See Programming

Source code MS Visual Studio Task handling Macros (js files)

See Also