macOS
brew install astylelocal Homebrew formula metadata
sudo port install astyleMacPorts ports tree · devel/astyle/Portfile · 来源: api.github.com
安装
brew install astylelocal Homebrew formula metadata
sudo port install astyleMacPorts ports tree · devel/astyle/Portfile · 来源: api.github.com
sudo apk add astyleAlpine Linux edge package indexes · astyle · 来源: dl-cdn.alpinelinux.org
sudo apt install astyleDebian stable package indexes · astyle · 来源: deb.debian.org
sudo dnf install astyleFedora Rawhide package metadata · astyle · 来源: dl.fedoraproject.org
nix profile install nixpkgs#astylenixpkgs package indexes · pkgs/by-name/as/astyle/package.nix · 来源: api.github.com
sudo pacman -S astyleArch Linux sync databases · astyle · 来源: geo.mirror.pkgbuild.com
sudo zypper install astyleopenSUSE Tumbleweed package metadata · astyle · 来源: download.opensuse.org
choco install astyleChocolatey community package catalog · astyle · 来源: community.chocolatey.org
scoop install main/astyleScoop official bucket manifest trees · bucket/astyle.json · 来源: api.github.com
概览
Source code beautifier for C, C++, C#, and Java
历史
Artistic Style, usually installed as astyle, is a long-running source code formatter for C, C++, C++/CLI, Objective-C, C#, Java, and related brace-heavy languages. It predates many modern formatter ecosystems and remains a compact command-line beautifier with a library build option.
The official release archive traces the lineage back to ASBeautifier 0.8.0, described as the first public release and a direct C++ port of JSBeautifier 1.1.1 with extensions for C++ indentation. Artistic Style 1.0.0 followed on November 24, 1998, with behavior that retained the original filename and wrote the preformatted source to a .orig backup.
By 1999 the project had added a formatting layer around the beautifier, brace placement modes, and operator padding. The 1.x line accumulated C, C++, Java, namespace, pointer, reference, and recursive processing behavior over several years; later 2.x releases broadened language handling and build support, while 3.x releases modernized the codebase and options.
The current project site describes Artistic Style as free, fast, and small, written in C++, usable either as a command-line program or as a library. The official source repository page says day-to-day development now happens in the GitLab repository, while the SourceForge SVN repository is kept up to date regularly.
AStyle became widely packaged because it solved a boring cross-language problem with a small native binary and no editor dependency. The input package facts list packages across Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, Chocolatey, Scoop, MacPorts, Nix, and openSUSE.
Its adoption path also runs through editors and IDEs. The official site notes applications that use Artistic Style as contributed software, either embedding it or calling the command-line program, and it documents compile options for shared and static libraries, JNI, and examples for multiple host languages.
Users invoke astyle on one or more source files, with options controlling brace style, indentation, padding, pointer/reference alignment, recursive processing, backup suffixes, and language mode. By default, formatted files retain their original names and backups are created unless disabled.
Option files are a core part of real-world usage. The manual documents default option files such as ~/.astylerc on Unix-like systems and %APPDATA%\astylerc on Windows, plus project option files named .astylerc or _astylerc found from the project root or parent paths. Command-line options override project options, which override default options.
AStyle is the sort of formatter that package managers keep forever: tiny, native, scriptable, no runtime service, and useful both before and after editor integrations. It sits in the same historical shelf as indent-style tools that developers wired into Makefiles, hooks, IDE commands, and release scripts before opinionated single-language formatters took over.
Its long release archive is also valuable package archaeology. You can watch a formatter evolve from ASBeautifier and early brace placement into modern C++ support, project config files, fuzzing fixes, CMake builds, shell completions, and issue-driven maintenance.
安全态势
没有找到 astyle 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.astylerc<project>/.astylerc<project>/_astylerc%APPDATA%\astylerc<project>\.astylerc<project>\_astylerc可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
astyle | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://astyle.sourceforge.net/
安装元数据
| 软件包键 | brew:astyle |
|---|---|
| 版本 | 3.6.17 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/astyle |
| 主页 | https://astyle.sourceforge.net/ |
| 仓库 | https://gitlab.com/saalen/astyle |
| 上游文档 | https://astyle.sourceforge.net/astyle.html |
| 许可证 | MIT |
| 源码归档 | https://downloads.sourceforge.net/project/astyle/astyle/astyle%203.6/astyle-3.6.17.tar.bz2 |
| 最后更新 | 2026-07-07T20:43:51Z |
| Pulse | updated |
| 构建依赖 | cmake |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | astyle |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
astyle 3.1-3+b3
Source code indenter for C, C++, Objective-C, C#, and Java
http://astyle.sourceforge.net/
sudo apt install astylelibastyle-dev 3.1-3+b3
Library header files for Artistic Style
http://astyle.sourceforge.net/
sudo apt install libastyle-devlibastyle3 3.1-3+b3
Shared library for Artistic Style
http://astyle.sourceforge.net/
sudo apt install libastyle3libastylej-jni 3.1-3+b3
Java JNI library for Artistic Style
http://astyle.sourceforge.net/
sudo apt install libastylej-jniastyle
nix profile install nixpkgs#astyleastyle 3.1-3build1
Source code indenter for C, C++, Objective-C, C#, and Java
http://astyle.sourceforge.net/
sudo apt install astylelibastyle-dev 3.1-3build1
Library header files for Artistic Style
http://astyle.sourceforge.net/
sudo apt install libastyle-devlibastyle3 3.1-3build1
Shared library for Artistic Style
http://astyle.sourceforge.net/
sudo apt install libastyle3libastylej-jni 3.1-3build1
Java JNI library for Artistic Style
http://astyle.sourceforge.net/
sudo apt install libastylej-jniastyle 3.6.16-r0
Automatic code formatter
https://sourceforge.net/projects/astyle/
sudo apk add astyleastyle-dev 3.6.16-r0
Automatic code formatter (development files)
https://sourceforge.net/projects/astyle/
sudo apk add astyle-devastyle-doc 3.6.16-r0
Automatic code formatter (documentation)
https://sourceforge.net/projects/astyle/
sudo apk add astyle-docastyle-libs 3.6.16-r0
Automatic code formatter (libraries)
https://sourceforge.net/projects/astyle/
sudo apk add astyle-libsastyle 3.6.16-1.fc45
Source code formatter for C-like programming languages
https://astyle.sourceforge.net/
sudo dnf install astyleastyle-devel 3.6.16-1.fc45
Source code formatter for C-like programming languages
https://astyle.sourceforge.net/
sudo dnf install astyle-develastyle 3.6.16-1
A free, fast and small automatic formatter for C, C++, C#, and Java source code
http://astyle.sourceforge.net/
sudo pacman -S astyle来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.