6 3
Contact Author Sign in to rate

External Note Editor (vim, vscode, atom, ...)

0.01MB. Updated 2022-05-17.
The author has shared 6 other item(s).


This add-on is an updated version of the original External Editor add-on (link) by github user pointtonull. Next time you press Ctrl + Alt + X while editing a field it'll open your configured editor. (The shortcut is configurable) Note: When you press the shortcut and nothing happens it may be because there is a conflicting shortcut. Try setting a different shortcut in the add-on config and reopen the editor window for the changes to take effect. It allows you to specify your editor of preference. For Windows users, remember to escape (duplicate) the backslashes in the path (json uses backslash as a special character): { "editor": "c:\\Program Files\\Notepad++\\notepad++.exe" } Problems, Bugs, Errors, Improvements If you have an idea for an improvement or encounter a problem please create an issue on Github. Support my work If this add-on is useful to you please consider buying me a coffee: Updates: 2022-05-17: Added config option for file extension of the temporary file created when editing note contents 2022-04-25: Adjusted default shortcut for mac, add more information on setup in config 2022-02-06: Added compatibility with Anki 2.1.28 2022-01-28: Changed how editors can be configured 2021-11-5: File editor launch commands can now be specified as a list to allow white space in arguments (e.g. ["command", "arg1", "arg with spaces"]). (Contribution by github user jack-faller.) 2021-9-22: Initial Release (Update for Anki 2.1.45)


As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

Supported Anki versions:

To download this add-on, please copy and paste the following code into Anki 2.1:


If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

All Anki 2.1.x Add-Ons Contact Author


on 1657061264

When I change editor path. (=c:\\Program Files\\Notepad++\\notepad++.exe) (etc)

It's not working.
on 1652808811
Fantastic. Does exactly what it says it does, and does it well. My only wish is that it could also be used to edit card templates as easily, but that's a feature request and not a bug report.
on 1650306971
I can configure shortcut properly. Using sublime text in Arch Linux, but the changes I make with the external editor do not get saved in the card :(( Any help?
Comment from author
I'm not sure how it works in sublime text but you have to save the file before exiting the editor. Hope this helps!
on 1646553765
Unable to configure shortcuts in MacOS.
Comment from author
Maybe you could try different options for the hotkey? Some key combinations are reserved by Anki.

Cmd+Alt+E should work I think. Note that it is Cmd and not Ctrl.
on 1645402142
I still cannot make it work. I changed everything I changed Ctrl Alt x to other combos, tried vim, neovim path tool
Comment from author
This config works for me:
"editor": "vim -gf",
"shortcut": "Ctrl+Alt+E"

If you can open vim using "vim -gf" from a terminal it also should also work in Anki. Let me know if this works for you.
on 1644160327
An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.

When loading '⁨External Note Editor vim vscode atom ⁩':
⁨Traceback (most recent call last):
File "aqt\addons.py", line 211, in loadAddons
File "C:\Users\cinde\AppData\Roaming\Anki2\addons21\704320065\__init__.py", line 7, in <module>
from aqt.hooks_gen import editor_did_init_shortcuts
ModuleNotFoundError: No module named 'aqt.hooks_gen'
Comment from author
The latest update fixes this error.
on 1642003249
Great work! And is it possible support edit template? css,html need it
on 1638174861
Doesn't work on 2.1.48. Tried both on Linux and MacOS, with different shortcuts and editor, and nothing worked


After updating it now works on MacOS but I'm still having issues on Linux when trying to use vim as an editor. Something about an undefined reference to something sqlite3 related in a shared library named libsparql. I will investigate further, for now I've updated my review to positive :)
Comment from author before post was edited
You have to close and reopen the editor for the changes in the config to the shortcut to take effect.

It's also possible that the add-on is incompatible with another add-on you have installed. You could try to disable other add-ons to see if it works then. It's working for me on Linux and Windows in Anki 2.1.48.
on 1636959525
Thanks! :-)

This add-on works when adding or editing cards, but not in the browser window. Please fix this…

Edit: Thanks for fixing this! ^_^
Comment from author before post was edited
This has been fixed! :)