Obsidian-Format-Code
Obsidian-Format-Code copied to clipboard
Obsidian Format Code plugin
This is a plugin for Obsidian that introduces custom commands to format code.
Currently supports the following languages:
- JSON
- YAML
- HTML
- GraphQL
- TypeScript
Prettier is used under the hood.
How to use
How to install
Until this plugin is not published in the Obsidian ecosystem you can install it using How to develop instructions
How to develop
- Clone the repository to
.obsidian/plugins/obsidian-format-code
-
npm i
-
npm run dev
- Launch Obsidian
- Enable plugin in the Obsidian settings under "Community plugins" > "Installed plugins"" >"Format code"