Extension to provide Gnuplot language support for VS Code.
Supports:
- Grammar-based syntax highlighting
- Problem matcher (and pattern) for build tasks
- Snippets
To make use of the problem matcher, the task should pass the relative file path to Gnuplot.
Example task in tasks.json
:
{
"label": "Plot with Gnuplot",
"command": "${config:gnuplot.gnuplotPath}",
"args": [ "${relativeFile}" ],
"problemMatcher": "$gnuplot"
// ...
}
If the script includes other Gnuplot scripts, it may be useful to set a matching loadpath
:
{
"label": "Plot with Gnuplot",
"command": "${config:gnuplot.gnuplotPath}",
"args": [ "-e", "set loadpath '${fileDirname}'", "${relativeFile}" ],
"problemMatcher": "$gnuplot"
// ...
}
This extension contributes the following settings:
gnuplot.gnuplotPath
: Path to the Gnuplot executable. Not used by this extension directly, but useful intasks.json
if it's checked into repositories. Use a command such as${config:gnuplot.gnuplotPath}
.
https://github.com/MarioSchwalbe/vscode-gnuplot