Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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