# Editor.CodeEditor.OpenFile

## Overload 1

```csharp
static void OpenFile(ISourcePathProvider location)
```

### Parameters

- `location` (`ISourcePathProvider`)

## Overload 2

```csharp
static void OpenFile(string path, System.Nullable<int> line = null, System.Nullable<int> column = null)
```

### Parameters

- `path` (`string`)
- `line` (`System.Nullable<int>`), default `null`
- `column` (`System.Nullable<int>`), default `null`

Declared in [Editor.CodeEditor](/api/Editor.CodeEditor).
Assembly: `Sandbox.Tools`.
