Skip to content

Commit c5e30ba

Browse files
pan93412elvis kahoro
andauthored
Add “Open a path in VS Code” (#163)
Although it is largely duplicated to “Open a file or directory in the currently open VS Code window”, this workflow is still valuable because: - It uses `.` as the default `dir`, which is more common in development. - It does not add any additional flags such as `-r`. Signed-off-by: pan93412 <pan93412@gmail.com> Co-authored-by: elvis kahoro <elvis@warp.dev>
1 parent 8da2deb commit c5e30ba

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Open a path in VS Code
3+
command: "code {{path}}"
4+
tags: ["code"]
5+
description: This workflow opens the current or the specified folder in VS Code.
6+
arguments:
7+
- name: path
8+
description: The file or directory where VS Code opens. The default is the current directory.
9+
default_value: "."
10+
source_url: https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line
11+
author: pan93412
12+
author_url: "https://github.com/pan93412"
13+
shells: []

0 commit comments

Comments
 (0)