Created
May 5, 2021 09:31
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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