10 Repos
Tools that automatically restructure source code to adhere to a consistent visual style and layout.
Distinct from Code Analysis and Formatting: Distinct from Code Analysis and Formatting: focuses specifically on the layout and structural rewriting of code rather than general linting or analysis.
Explore 10 awesome GitHub repositories matching part of an awesome list · Source Code Formatters. Refine with filters or upvote what's useful.
coc.nvim is a Node.js extension host and Language Server Protocol client that transforms Vim and Neovim into a full integrated development environment. It provides a framework for executing JavaScript and TypeScript plugins within a separate process to enable advanced IDE features without blocking the editor's main thread. The project is distinguished by its ability to host extensions and language servers through a centralized JSON configuration. It supports the installation and lifecycle management of third-party extensions from registries or local files, allowing users to customize language
Provides automated source code formatting based on language-specific style rules.
Spacemacs is a community-driven configuration for Emacs that integrates modal text editing and a modular system for managing editor features. It implements distinct states for navigation and insertion to separate text manipulation from text entry, combining the efficiency of modal navigation with the extensibility of the Emacs environment. The project distinguishes itself through a layer-based feature composition system, which groups related third-party packages and configurations into modular units. This system includes dependency-based resolution to manage conflicting extensions and a mnemo
Standardizes the layout of the current buffer or symbol based on defined style guides.
google-java-format ist ein Java-Code-Formatter und ein Tool zur Durchsetzung von Styleguides. Es formatiert Java-Quellcode so um, dass er einem standardisierten Styleguide entspricht, und sorgt so für ein konsistentes Layout und eine einheitliche Einrückung über ganze Projekte oder einzelne Dateien hinweg. Das Projekt fungiert als Linting-Tool in Build-Pipelines für Continuous-Integration-Workflows sowie als IDE-Formatierungs-Plugin, das die native Editor-Formatierung ersetzt. Es kann als Formatierungsbibliothek in Software zur Codegenerierung eingebettet werden, um sicherzustellen, dass maschinell erstellter Code für Menschen lesbar bleibt. Das Tool bietet Funktionen zur Anpassung von Einrückungen und Abständen im Quellcode, einschließlich der Möglichkeit, Formatierungen selektiv auf bestimmte Zeilenbereiche oder geänderte Diffs anzuwenden. Es unterstützt die Integration in Entwicklungsumgebungen wie Eclipse, um Layout-Anpassungen während des Codierens zu automatisieren.
Automatically restructures Java source code to adhere to a consistent visual style and layout.
Roc is a statically typed, functional programming language built around immutable-by-default semantics, exhaustive pattern matching on tag unions, and a type system that combines optional explicit annotations with full compile-time type inference. Its core identity centers on correctness and expressiveness, using tagged unions for error handling with a question-mark operator for early error propagation, and a trailing-bang naming convention that makes side-effect boundaries syntactically visible at every call site. The language distinguishes itself through a platform-based I/O abstraction tha
Applies standard style rules to all source files with a single command and no configuration options.
node-jscs ist ein JavaScript-Linter und Code-Style-Checker, der entwickelt wurde, um Quellcode zu analysieren und konsistente Codierungsstandards durchzusetzen. Es fungiert als statisches Analysetool, das Muster in JavaScript-Code identifiziert, um die Einhaltung definierter Styleguides sicherzustellen. Das Projekt bietet Funktionen sowohl für das JavaScript-Code-Linting als auch für die automatisierte Code-Formatierung. Es kann Quellcode auf Stilverstöße prüfen und diese Fehler automatisch korrigieren, um die Codebasis an einen festgelegten Satz von Formatierungsregeln anzupassen.
Automatically restructures JavaScript source code to align with specified formatting rules.
lua-language-server ist ein statisches Analysetool und Typ-Checker für die Sprache Lua, der das Language Server Protocol implementiert. Er bietet ein System zur Erkennung von Typ-Diskrepanzen, ungenutztem Code und Logikfehlern in Quelldateien. Das Projekt bietet ein inferenzbasiertes Typsystem, das Variablentypen ableitet und optionale Annotationen sowie Meta-Dateien zur Durchsetzung von Typsicherheit unterstützt. Es ermöglicht die Definition benutzerdefinierter Typen und Funktionssignaturen, einschließlich Unterstützung für Overloads und Sichtbarkeitskontrollen für Member. Der Server bietet eine breite Palette an IDE-Funktionen, einschließlich Echtzeit-Code-Autocompletion, Symbol-Refactoring sowie Navigation zu Definitionen und Implementierungen. Er enthält einen Code-Formatter und einen Dokumentationsgenerator, der Symbole und Annotationen extrahiert, um Markdown- und JSON-Dateien zu produzieren. Der Server kann aus dem Quellcode gebaut und an spezifische Sprachversionen und Laufzeitumgebungen angepasst werden.
Includes a built-in formatter that automatically adjusts indentation and style to maintain consistent visual structure.
vim-easy-align is a text alignment plugin and extension for the Vim editor. It functions as a regular expression-based text formatter designed to vertically align text across multiple lines. The tool identifies alignment anchor points using characters or regular expressions to create tabular layouts and organized source code formatting. It supports specific occurrence targeting to determine which instance of a repeating character serves as the anchor, as well as the ability to define custom alignment rules and delimiters. Capabilities include multi-line text alignment with left, right, or ce
Restructures source code layout by lining up variable assignments and configuration blocks for better readability.
RLS is a language server that provides language intelligence for the Rust programming language. It implements the Language Server Protocol to enable a standardized communication layer between the Rust compiler and various editor clients. The project focuses on providing real-time code completions, symbol navigation, and type information. It also supports automated structural changes, such as workspace-wide symbol renaming, to maintain semantic correctness during refactoring. The system incorporates static code analysis for linting and formatting, alongside a mechanism for incremental compila
Analyzes the current document and replaces text with a consistent, standardized layout for the entire file or specific ranges.
OpenRewrite is an automated refactoring engine and source-to-source migration framework. It uses a lossless semantic tree parser to represent source code as type-aware trees that preserve original whitespace and formatting, enabling precise and deterministic modifications. The project utilizes a declarative refactoring pipeline where sequences of transformations are defined in YAML to resolve breaking changes and technical debt. It features type-aware pattern matching and cross-language model mapping to apply similar refactoring patterns across different programming languages. The framework
Enforces consistent visual formatting across a codebase to ensure all files adhere to a configured style.
kotlin-lsp is a language server implementation that integrates editors with the Kotlin compiler and build tools to provide language intelligence and code analysis. It uses the Language Server Protocol to decouple heavy language processing from the text editor user interface. The project provides static code analysis to detect issues and provide real-time diagnostics. It enables source code navigation through symbol-index based jumping to definitions and an analysis of how components interact. Additional capabilities include automated source code formatting, intelligent code completion, and s
Automatically adjusts source code layout and style to adhere to consistent project rules.