Skip to content

Instantly share code, notes, and snippets.

@gepatto
Created May 5, 2021 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gepatto/89ae213da56d94d0b1a080a155ec390b to your computer and use it in GitHub Desktop.
Save gepatto/89ae213da56d94d0b1a080a155ec390b to your computer and use it in GitHub Desktop.
Create VSCode workspacefile with haxe and lime recommend extensions and open in VSCode
#!/bin/bash
# get working directory and grab foldername
NAME=`pwd`;
subdir="${NAME##*/}"
# create workspacefile
WORKSPACEFILE='{"folders":[{"path": "."}],"settings":{},"extensions":{"recommendations":["vshaxe.haxe-extension-pack","openfl.lime-vscode-extension"]}}'
echo $WORKSPACEFILE >> "${subdir}.code-workspace"
# create .vscode dir
mkdir -p .vscode
# open workspace in vscode
code "$subdir.code-workspace"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment