Code Style Keys is an Obsidian plugin that makes wrapping selected text in backticks faster while editing notes.
When you press the backtick key with text selected:
selected text.The plugin also prevents duplicate trailing backticks that can appear from the original keypress.
This plugin is useful if you frequently format code snippets and want one quick key action instead of manually typing wrappers.
The plugin listens for the beforeinput event. If the typed character is a backtick and the active editor has a selection, it:
npm install
npm run dev
npm run build
Copy these files into your vault at:
<Vault>/.obsidian/plugins/code-style-keys/
main.jsmanifest.jsonstyles.css (if used)Then reload Obsidian and enable the plugin.
This version has no settings.
isDesktopOnly: false).manifest.json.src/main.tsnpm run lint
MIT