Scripts2026年7月19日·1 分钟阅读

Brackets — Open Source Code Editor for Web Development

A lightweight yet powerful code editor created by Adobe, designed specifically for front-end web developers with live preview, inline editing, and preprocessor support.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Brackets
直接安装命令
npx -y tokrepo@latest install 1cc43b94-830c-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

Brackets is an open-source code editor built with web technologies (HTML, CSS, JavaScript) and designed for front-end web development. It provides a focused visual toolset with features like live preview and inline editing that reduce context-switching between the editor and the browser.

What Brackets Does

  • Provides real-time Live Preview that updates the browser as you type without manual refreshes
  • Offers Quick Edit (inline editing) to modify CSS rules directly from within HTML files
  • Supports preprocessor workflows including LESS and SCSS compilation
  • Includes a rich extension ecosystem with hundreds of community-built plugins
  • Delivers syntax highlighting and code hints for HTML, CSS, JavaScript, and many other languages

Architecture Overview

Brackets is built entirely on web standards using a Chromium Embedded Framework shell. The editor core uses CodeMirror for text editing, with a custom extension API that allows JavaScript-based plugins to hook into every aspect of the editor. The Live Preview feature uses a WebSocket connection to Chrome DevTools Protocol for real-time DOM manipulation.

Self-Hosting & Configuration

  • Download binaries for Windows, macOS, or Linux from the official site or GitHub releases
  • Build from source by cloning the repo and running npm install followed by grunt build
  • Install extensions via the built-in Extension Manager (File > Extension Manager)
  • Configure preferences in brackets.json located in the user app data directory
  • Customize keyboard shortcuts via the Debug > Open User Key Map menu

Key Features

  • Live Preview with real-time CSS/HTML updates without page reload
  • Quick Edit for inline CSS, JavaScript, and color editing in context
  • Extract design information directly from PSD files (via Extract extension)
  • Built-in support for popular preprocessors (LESS, SCSS)
  • Highly extensible via a JavaScript-based Extension API

Comparison with Similar Tools

  • VS Code — More feature-rich and actively maintained, but heavier and less focused on front-end workflows
  • Sublime Text — Faster and more mature, but proprietary and lacks built-in live preview
  • Atom — Similar web-tech architecture (now sunsetted), but Brackets has better front-end-specific tooling
  • Notepad++ — Lighter and Windows-only, lacks live preview and inline editing features

FAQ

Q: Is Brackets still maintained? A: Adobe archived the project in 2021, but the codebase remains available on GitHub and community forks exist.

Q: Can Brackets handle large projects? A: It works well for small-to-medium web projects. For very large codebases, VS Code or a JetBrains IDE may perform better.

Q: Does Live Preview work with all browsers? A: The built-in Live Preview uses Google Chrome. Extensions exist for other browsers but with limited support.

Q: How do I install themes? A: Open Extension Manager, search for themes, and click Install. Themes apply immediately.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产