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

https://github.com/inc44/fortify

Yet another formatter.
https://github.com/inc44/fortify

black css formatter html javascript js-beautify json php prettier python rust rustfmt

Last synced: 5 months ago
JSON representation

Yet another formatter.

Awesome Lists containing this project

README

          

# Fortify Formatter VSCode Extension

![Stars](https://img.shields.io/github/stars/Inc44/Fortify?style=social)
![Forks](https://img.shields.io/github/forks/Inc44/Fortify?style=social)
![Watchers](https://img.shields.io/github/watchers/Inc44/Fortify?style=social)
![Repo Size](https://img.shields.io/github/repo-size/Inc44/Fortify)
![Language Count](https://img.shields.io/github/languages/count/Inc44/Fortify)
![Top Language](https://img.shields.io/github/languages/top/Inc44/Fortify)
[![Issues](https://img.shields.io/github/issues/Inc44/Fortify)](https://github.com/Inc44/Fortify/issues?q=is%3Aopen+is%3Aissue)
![Last Commit](https://img.shields.io/github/last-commit/Inc44/Fortify?color=red)
[![Release](https://img.shields.io/github/release/Inc44/Fortify.svg)](https://github.com/Inc44/Fortify/releases)
[![Sponsor](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/Inc44)

Yet another formatter.

## ⚙️ Features

- Formats HTML, CSS, JavaScript, and JSON using js-beautify.
- Formats PHP using Prettier.
- Formats Kotlin using ktfmt.
- Formats Intel x86 Assembly using a custom formatter.

## 🚀 Installation

- Get the `.vsix` file.
- Open Visual Studio Code.
- Go to Extensions.
- Click the "..." menu in the upper right corner.
- Select "Install from VSIX...".
- Select the `.vsix` file.

## 📦 Publish

1. Install Node.js with npm and Visual Studio Code.

2. Get the required files:

```bash
npm install
```

3. Make the package:

```bash
vsce package
```

Or

```bash
npx vsce package
```

Or

```bash
npm run package
```

4. A `.vsix` file is created in the current directory.

5. Move (optional):

```bash
mv fortify-formatter-*.*.*.vsix vsix
```

6. Publish:

```bash
vsce publish
```

Or

```bash
npx vsce publish
```

## 📖 Usage

- Open a file.
- Right-click "Format Document" or press `Shift+Alt+F`.

## 🙏 Thanks

Creators of:

- [js-beautify](https://beautifier.io)
- [Prettier](https://prettier.io)
- [ktfmt](https://facebook.github.io/ktfmt)

## 🤝 Contribution

Contributions, suggestions, and new ideas are heartily welcomed. If you're considering significant modifications, please initiate an issue for discussion before submitting a pull request.

## 📜 License

[![MIT](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT)

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

## 💖 Support

[![BuyMeACoffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black)](https://buymeacoffee.com/xamituchido)
[![Ko-Fi](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge&logo=ko-fi&logoColor=white)](https://ko-fi.com/inc44)
[![Patreon](https://img.shields.io/badge/Patreon-F96854?style=for-the-badge&logo=patreon&logoColor=white)](https://www.patreon.com/Inc44)