Compartir a través de


Go To Command

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Moves the cursor to the specified line.

Syntax

Edit.GoTo [linenumber]

Arguments

linenumber
Optional. An integer representing the number of the line to go to.

Remarks

The line numbering begins at one. If the value of linenumber is less than one, the first line displays. If the value of linenumber is greater than the number of the last line, the last line displays.

If a value for linenumber is not specified, the Go To Line dialog box displays.

The alias for this command is GoToLn.

Example

>Edit.GoTo 125

See also