Gnuplot Language Support for Visual Studio Code
Extension to provide Gnuplot language support for VS Code.
Screenshot
Features
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"
// ...
}
Extension Settings
This extension contributes the following settings:
gnuplot.gnuplotPath
: Path to the Gnuplot executable. Not used by this extension directly, but
useful in tasks.json
if it's checked into repositories. Use a command such as
${config:gnuplot.gnuplotPath}
.
Source
https://github.com/MarioSchwalbe/vscode-gnuplot