Dela via


Visual Studio Commands with Arguments

Commands that accept arguments allow you to bypass the user interface for a command, such as a dialog box, completely. Only a select group of commands accept arguments and/or switches.

Command Name

Description

Add Existing Item

Adds an existing file to the current solution and opens it.

Add Existing Project

Adds an existing project to the current solution.

Add New Item

Adds a new solution item, such as an .htm, .css, .txt, or frameset to the current solution and opens it.

Alias

Creates a new alias for a complete command, complete command and arguments, or even another alias.

Evaluate Statement

Evaluates and displays the given statement.

F1Help

Displays a Help topic based on its specified F1 keyword.

Find

Searches files using a subset of the options available on the Quick Find, Find and Replace Window.

Find in Files

Searches files using a subset of the options available on the Find in Files, Find and Replace Window.

Find Symbol

Searches for an object in the type library, setting search options or using the options currently set in the Find Symbol, Find and Replace Window.

Go To

Moves the cursor to the specified line.

List Call Stack

Displays the current call stack.

List Disassembly

Begins the debug process and allows you to specify how errors are handled.

List Memory

Displays the contents of the specified range of memory.

List Modules

Lists the modules for the current process.

List Registers

Displays a list of registers.

List Source

Displays the specified lines of source code.

List Threads

Displays a list of the threads in the current program.

Log Command Window Output

Copies all input and output from the Command window into a file.

New File

Creates a new file and adds it to the currently selected project.

Open File

Opens an existing file and allows you to specify an editor.

Open Project

Opens an existing project and allows you to add the project to the current solution.

Open Solution

Opens an existing solution.

Print

Evaluates the expression and displays the results or the specified text.

Quick Watch Command

Displays the selected or specified text in the Expression field of the Quick Watch dialog box.

Replace

Replaces text in files using a subset of the options available on the Quick Replace, Find and Replace Window.

Replace in Files

Replaces text in files using a subset of the options available in the Replace in Files, Find and Replace Window.

Set Current Stack Frame

Allows you to view a particular stack frame.

Set Current Thread

Allows you to view a particular thread.

Set Radix

Determines the number of bytes to view.

Shell

Launches programs from within Visual Studio as though the command has been executed from the command prompt.

ShowWebBrowser Command

Displays the URL you specify in a Web browser window either within the integrated development environment (IDE) or external to the IDE.

Start

Begins the debug process and allows you to specify how errors are handled.

Symbol Path

Sets the list of directories for the debugger to search for symbols.

Toggle Breakpoint

Turns the breakpoint either on or off, depending on its current state, at the current location in the file.

WatchN Command

Creates and opens a specified instance of a Watch window.

See Also

Reference

Command Window

Find/Command Box

Predefined Visual Studio Command Aliases