Anki add-on: External Code Editor

External Code Editor The External Code Editor addon offers enhanced code editing and updating capabilities during both review and preview sessions. This powerful tool enables you to seamlessly copy code from your review or preview, edit it within an external HTML editor, and then run the code directly within the review or preview environment, mirroring browser-like functionality. This addon streamlines code updates within both review and preview states of notetypes, proving invaluable for add-on development and the creation of intricate card templates. Features Copy Code (Ctrl+c): Generates an HTML file within the collection.media directory, copying the code from the current notetype to this HTML file. External HTML Editing: Edit the HTML file using an external editor (e.g., VSCode), refining your code with precision. Update Code (Ctrl+s): Effortlessly synchronize the updated code from the HTML file back into the notetype during review sessions, immediately reloading the current card. Open File (Ctrl+o): Open the HTML file in default VSCode or any default code editor. Requirements Compatible with Anki version >= v2.1.20. Usage Deckbrowser Integration: Incorporates Copy Code and Update Code options into the menubar within the Deckbrowser, streamlining your code management workflow. Efficient Editing: Seamlessly copy, edit, and update code from the review and preview states, facilitating fluid card template refinement. Enhanced Preview Functionality: In the preview state, simply right-click to access copy and update code options, offering a user-friendly experience. Code Inspection: Utilize the AnkiWebView Inspector addon to meticulously examine your code for any potential errors or issues. Compatibility Works with Anki version >= v2.1.20. Source Code For any inquiries or to report issues, please visit the GitHub repository . Author Venkata Ramana P Github This project is licensed under The MIT License (MIT) .

GitHub repository: itsmepvr/anki-external-code-editor
Repository description: Anki - Copy, Edit and Run code in Review from external editor
Languages: Python
Topics: addon, anki, anki-addon, javascript, notetype, python3, review, review-state