Draw an SVG image with a mouse or pen.
NOTE: This is an alpha project; please open an issue for any bugs, questions, or ideas!
Open a file (in a supported format) and run Draw: Edit Current Line
by either
- right clicking on the line or
- opening the command palette (
F1
orCtrl-Shift-P
) and typedraw edit
The currently supported formats are
- markdown
- asciidoc
- restructuredtext
Consider binding the main command (perhaps to a stylus, if available). For example, the tail button on my stylus sends the Super + Escape
key sequence:
{
"key": "meta+Escape",
"command": "draw.editCurrentLine"
}
NOTE: you may have to disable, or rebind, conflicting keys in your OS settings.
The following settings are available (prefixed with draw
).
setting | description | default | example |
---|---|---|---|
directory |
where to save files | "" |
${workSpaceFolder}/assets |
buttons |
add custom buttons to the toolbar | [] |
see below |
To save contents inline, set draw.directory
to null
.
The following variables are currently supported:
workspaceFolder
To add custom buttons to the toolbar, add an entry to the draw.buttons
array in settings.json
; for example,
{
"draw.buttons": [
{
"icon": "beer",
"title": "pour another",
"function": "console.log('hooray!')"
}
]
}
search the Font Awesome set for an icon name
The preset color selections are defined by VSCode's chart colors and so can be changed in settings.json
.
The following services are available to convert hand-written formulas to LaTeX equations.
free for 2000 requests/month
- create an account
- generate application and HMAC tokens
- run
Draw: Configure HTR Provider
and selectmyscript
free for 1000 requests/month but charge a one-time, non-refundable, setup fee of $20
This integration also supports image drag and paste.
- create an account
- create an org, pay the setup fee, and create an API key
- run
Draw: Configure HTR Provider
and selectmathpix
This project was forked from zhaouv/vscode-markdown-draw and licensed under the Apache-2.0 License.