From 77b099b09f88d3c3299ea5535b321b624205a5df Mon Sep 17 00:00:00 2001 From: pan93412 Date: Sat, 3 Jun 2023 12:01:15 +0800 Subject: [PATCH] Add workflows for Code (Insiders) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is basically the variant of `specs/code` – it changes all the `code` to `code-insiders`, while noting “Insiders” in the workflow name. --- .../compare_two_files_in_vs_code.yaml | 16 ++++++++++++++++ ...ory_in_the_currently_open_vs_code_window.yaml | 13 +++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 specs/code-insiders/compare_two_files_in_vs_code.yaml create mode 100644 specs/code-insiders/open_a_file_or_directory_in_the_currently_open_vs_code_window.yaml diff --git a/specs/code-insiders/compare_two_files_in_vs_code.yaml b/specs/code-insiders/compare_two_files_in_vs_code.yaml new file mode 100644 index 0000000..5aa6462 --- /dev/null +++ b/specs/code-insiders/compare_two_files_in_vs_code.yaml @@ -0,0 +1,16 @@ +--- +name: Compare two files in VS Code (Insiders) +command: "code-insiders -d {{file1}} {{file2}}" +tags: ["code-insiders"] +description: Compare two files using code. +arguments: + - name: file1 + description: The first file that you want to compare. + default_value: ~ + - name: file2 + description: The second file that you want to compare. + default_value: ~ +source_url: "https://stackoverflow.com/questions/30139597/visual-studio-code-is-there-a-compare-feature-like-that-plugin-for-notepad" +author: wisbucky +author_url: "https://stackoverflow.com/users/1081043/wisbucky" +shells: [] diff --git a/specs/code-insiders/open_a_file_or_directory_in_the_currently_open_vs_code_window.yaml b/specs/code-insiders/open_a_file_or_directory_in_the_currently_open_vs_code_window.yaml new file mode 100644 index 0000000..92edcce --- /dev/null +++ b/specs/code-insiders/open_a_file_or_directory_in_the_currently_open_vs_code_window.yaml @@ -0,0 +1,13 @@ +--- +name: Open a file or directory in the currently open VS Code (Insiders) window +command: "code-insiders -r {{file_or_directory}}" +tags: ["code-insiders"] +description: Use -r or --reuse-window command line option to attach the currently open VS Code window. +arguments: + - name: file_or_directory + description: The file or directory that you want to open. + default_value: ~ +source_url: "https://stackoverflow.com/questions/41377489/how-to-open-a-file-from-the-integrated-terminal-in-visual-studio-code" +author: zloy-zhake +author_url: "https://stackoverflow.com/users/2807320/zloy-zhake" +shells: []