V2EX  ›  英汉词典

Formatter

定义 Definition

Formatter 是一个名词,指用于格式化数据、文本或代码的工具、程序或对象。在日常语境中,也可以指负责排版或整理格式的人。

发音 Pronunciation

/ˈfɔːr.mæt.ər/

例句 Examples

This code formatter automatically fixes indentation and spacing issues.
这个代码格式化工具会自动修复缩进和空格问题。

Before submitting the report, she ran it through a text formatter to ensure consistent headings, margins, and font styles throughout the document.
在提交报告之前,她用文本格式化工具处理了一遍,以确保整个文档的标题、边距和字体风格保持一致。

词源 Etymology

Formatterformat 加上表示"执行某动作的人或物"的后缀 -er 构成。Format 源自拉丁语 formatus,是 formare(塑造、形成)的过去分词,而 formare 又来自 forma(形状、模式)。该词最早指书籍的版式和开本大小,后来在计算机时代扩展为"对数据或文本进行结构化排列"的含义。加上 -er 后缀后,便指"执行格式化操作的工具或程序"。

相关词汇 Related Words

文学与技术作品引用 Literary & Technical References

  • 在 Robert C. Martin 的 Clean Code 中,代码格式化(formatting)被视为编写可读代码的核心实践之一,书中专门有一章讨论 formatter 的作用与格式化规则。
  • 在 Go 语言社区中,官方工具 gofmt 是最著名的 formatter 之一,Rob Pike 等人在多篇技术文章中强调了统一格式化工具对团队协作的重要性。
  • 在 Steve McConnell 的 Code Complete 中,格式化工具被作为提高代码质量的重要辅助手段加以讨论。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5477 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 01:27 · PVG 09:27 · LAX 18:27 · JFK 21:27
♥ Do have faith in what you're doing.