An open API service indexing awesome lists of open source software.

https://github.com/iVariable/Obsidian-Format-Code


https://github.com/iVariable/Obsidian-Format-Code

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

## Obsidian Format Code plugin

This is a plugin for [Obsidian](https://obsidian.md) that introduces
custom commands to format code.

Currently supports the following languages:
- JSON
- YAML
- HTML
- GraphQL
- TypeScript

[Prettier](https://github.com/prettier/prettier) is used under the hood.

### How to use

![How to use](assets/obsidian-prettier-demo.gif)

### How to install

Until this plugin is not published in the Obsidian ecosystem you
can install it using [How to develop](#how-to-develop) instructions

### How to develop

1. Clone the repository to `.obsidian/plugins/obsidian-format-code`
2. `npm i`
3. `npm run dev`
4. Launch Obsidian
5. Enable plugin in the Obsidian settings under "Community plugins" > "Installed plugins"" >"Format code"