# ToGoLine

## Name

Go to Line

## Category

Edit

## Notation

- All

## Shortcut

Ctrl+G

## Code

```pascal
var
  LineNumber := Trim(InputBox('Go to Line', 'Line Number', ''));
if RegEx.IsMatch(LineNumber, '\A\d+\z', False, False) then
begin
  Editor.MoveCaret(LineNumber.ToInteger, 1);
end;
```
