Skip to content

Instantly share code, notes, and snippets.

@jotajr
Created November 25, 2019 12:30
Show Gist options
  • Save jotajr/cdcf63d939954e2fe380beb88bd0b285 to your computer and use it in GitHub Desktop.
Save jotajr/cdcf63d939954e2fe380beb88bd0b285 to your computer and use it in GitHub Desktop.
Create a custom toolbar button on XYPlorer to open VSCode
// XYPLORER SCRIPT: Run application
$script_name = "Open VsCode";
$cpath = "<curpath>";
$selected = "<curname>";
$app = "C:\Program Files\Microsoft VS Code\Code.exe";
$target = "";
if ($selected == "") {
$target = $cpath;
} else {
$target = $selected;
}
run """$app"" ""$target""";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment