You can specify that certain information be passed to a command when it is launched, such as command line switches for console applications.

Fill in the Arguments box with the necessary launch arguments, either manually or using the auto-fill button.

The auto-fill argument button can provide you with the macros described in table Table 30, “External Tools macros”.

Table 30. External Tools macros

Name

Argument

Description

Item Path

$(ItemPath)

The complete file name of the current source (defined as drive + path + file name); blank if a non-source window is active.

Item Directory

$(ItemDir)

The directory of the current source (defined as drive + path); blank if a non-source window is active.

Item File Name

$(ItemFilename)

The file name of the current source (defined as file name); blank if a non-source window is active.

Item Extension

$(ItemExt)

The file name extension of the current source.

Current Line

$(CurLine)

The current line position of the cursor in the editor.

Current Column

$(CurCol)

The current column position of the cursor in the editor.

Current Text

$(CurText)

The selected text.

Target Path

$(TargetPath)

The complete file name of the item to be built, (defined as drive + path + file name).

Target Directory

$(TargetDir)

The directory of the item to be built.

Target Name

$(TargetName)

The file name of the item to be built.

Target Extension

$(TargetExt)

The file name extension of the item to be built.

Binary Directory

$(BinDir)

The final location of the binary that is being built (defined as drive + path).

Project Directory

$(ProjectDir)

The directory of the current project (defined as drive + path).

Project file name

$(ProjectFileName)

The file name of the current project (defined as drive + path + file name).

Solution Directory

$(SolutionDir)

The directory of the current solution (defined as drive + path).

Solution file name

$(SolutionFileName)

The file name of the current solution (defined as drive + path + file name).