Skip to content

Instantly share code, notes, and snippets.

@elierotenberg
Created February 2, 2018 11:43
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 elierotenberg/d0abc502031ebaa3f933268f6e06178b to your computer and use it in GitHub Desktop.
Save elierotenberg/d0abc502031ebaa3f933268f6e06178b to your computer and use it in GitHub Desktop.
task.json file to run currently opened .m (octave/matlab) file with Ctrl+Shift+B
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Run",
"type": "shell",
"windows": {
"command": "C:\\Octave\\Octave-4.2.1\\bin\\octave-gui.exe",
"args": ["${file}"]
},
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "shared",
"focus": true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment