JS-script for Anki, that allows creation of interactive field for catching keys pressed on keyboard against a pre-setted shorcut. Built using JQuery.
Inspired by a site ShortcutFoo, this script allows you to build muscle memory for shorcuts by pressing them on keyboard while reviewing a note in Anki.
Works for Linux and Windows.
Works for Mac only if user disables ⌥
(alt
key) modification on their system - full support for mac later.
-
Download premade deck with VScode Windows shortcuts from
example_deck
and import it to your Anki.There are two decks:
vscode-win-online.apkg
- import this deck if you'll be reviewing notes on a PC that has constant internet-connection. JS-script in this deck is linked to the latest version of script in this GitHub repo. This will guarantee that you'll be using the latest version of the script.
vscode-win-offline.apkg
- download this deck if you don't want the script to depend on internet connection. It will have latest version of the script at the time of download. -
After import it will create new note type
Shortcuts
with two fields:Action
for text-description of shortcut andShortCut
where you need to write shortcut itself.
Just use this note type to create your own decks with shortcuts you need.
- Create new note type in the Anki browser with two fields -
Action
andShortCut
. - Copy templates for front and back from this HTML file. There are two templates for the front side - choose one depending on if
- you want it to work offline or not (read above in the
Easy way
for more info on what's different about templates.)
Copy CSS stylings from this CSS file.