Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update vscode://file paths in the docs #6838

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions docs/editor/command-line.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,25 +142,37 @@ You can also open projects and files using the platform's URL handling mechanism
Open a project

```bash
# Windows
vscode://file/{full path to project}/

vscode://file/c:/myProject/

# Other
vscode://file{full path to project}/
vscode://file/home/user/myProject/
```

Open a file

```bash
# Windows
vscode://file/{full path to file}

vscode://file/c:/myProject/package.json

# Other
vscode://file{full path to file}
vscode://file/home/user/myProject/package.json
```

Open a file to line and column

```bash
# Windows
vscode://file/{full path to file}:line:column

vscode://file/c:/myProject/package.json:5:10

# Other
vscode://file{full path to file}:line:column
vscode://file/home/user/myProject/package.json:5:10
```

You can use the URL in applications such as browsers or file explorers that can parse and redirect the URL. For example, on Windows, you could pass a `vscode://` URL directly to the Windows Explorer or to the command line as `start vscode://{full path to file}`.
Expand Down