Skip to content

Instantly share code, notes, and snippets.

@animanoir
Created February 15, 2020 06:07
Show Gist options
  • Save animanoir/fbd2d7a1148c1f649a253977f7dc8a12 to your computer and use it in GitHub Desktop.
Save animanoir/fbd2d7a1148c1f649a253977f7dc8a12 to your computer and use it in GitHub Desktop.
archivo tasks.json para meter a VSCode y ejecutar Processing desde allí.
// Tasks for processing and p5
// only for Windows
{
"version": "0.1.0",
"command": "cmd",
"isShellCommand": true,
"showOutput": "always",
"args": ["/C"],
"tasks":
[
{
"taskName": "1. Run processing sketch",
"suppressTaskName": true,
"isBuildCommand": true,
"args":
[
"processing-java",
"--force",
"--sketch=${workspaceRoot}",
"--output=${workspaceRoot}\\out",
"--run"
]
},
{
"taskName": "2. Open Processing reference",
"suppressTaskName": true,
"isBuildCommand": true,
"args":
[
"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
"file:///C:/util/processing-3/modes/java/reference/index.html"
//"file:///C:/util/processing-3/modes/java/reference/TM_SELECTED_TEXT.html"
]
},
{
"taskName": "3. Run p5 script",
"suppressTaskName": true,
"isBuildCommand": true,
"args":
[
"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
"index.html"
]
},
{
"taskName": "4. Open p5 reference",
"suppressTaskName": true,
"isBuildCommand": true,
"args":
[
"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
"file:///C:/util/p5/ref/index.html"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment