Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A vscode extension to use treefmt for formatting project files

License

NotificationsYou must be signed in to change notification settings

isbecker/treefmt-vscode

Repository files navigation

GitHub Actions Workflow StatusGitHub ReleaseVS Code Marketplace DownloadsVS Code Marketplace Installs

This VS Code extension provides integration withtreefmt, a multi-language code formatter. It allows you to format your code based on the configuration defined in yourtreefmt.toml file.

Features

  • Automatically formats your code based ontreefmt.toml configuration.
  • Supports a wide range of languages through various formatters.
  • No additional configuration needed within the extension.
  • Can be set as the default formatter in VS Code.

Installation

You can install it directly from the Visual StudioMarketplace.

Alternatively, open the Extensions view (Ctrl+Shift+X), search fortreefmt, and click Install.

Or, you can install it from the command line:

code --install-extension ibecker.treefmt-vscode

Usage

Configuration

The extension uses thetreefmt.toml file located in the root of your project directory.You can create this file manually or use thetreefmt --init command to generate a template.If you try to format a file without atreefmt.toml file, the extension will display an message and offerto runtreefmt --init on your behalf.

Setting as Default Formatter

To set this extension as the default formatter for your workspace:

  1. Open VS Code settings (Ctrl+,).
  2. Search fordefault formatter.
  3. Set the default formatter toTreefmt.

Now, every time you format a file,treefmt will be used according to yourtreefmt.toml configuration.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to improve the extension.

License

This project is licensed under the GPLv3 License.

About

A vscode extension to use treefmt for formatting project files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp