You can clone with HTTPS, Subversion, and other methods.
Download ZIPNettuts+ did a tutorial video on Brackets which makes for a helpful introduction on how to use some of the main features.
Brackets is built with HTML, CSS and JS, and currently runs as a desktop application in a thin native shell so that it can access your local files. Brackets isn't ready for general use yet, but if you like living on the bleeding edge, you can find instructions on how to get Brackets running below.
The latest stable builds can be downloaded from the downloads page.
If you want to download and run the absolutely latest version of the code, you will have to pull it directly from GitHub. See How to Hack on Brackets for details on pulling the source.
You can open a file from File > Open (Ctrl/Cmd-O), or open a folder in the file tree on the left using File > Open Folder (Ctrl/Cmd-Alt-O). It's a good idea to open the root of whatever project you're working on in the file tree, since other Brackets features search in the current tree. You can easily get back to previous projects you've worked on by clicking on the project's root folder name in the file tree. You can also drag a folder from the OS onto the Brackets window to open it in the file tree, and drag files onto the Brackets window to open them.
Unlike other editors that show open files in tabs, Brackets has a notion of the "Working Files" list, which is displayed above the file tree. Just clicking on files in the file tree doesn't automatically add them to the Working Files list, so you can quickly browse through different files without opening them. To add a file to Working Files, just make an edit in it, or double-click it in the file tree.
To change the default indentation for the editor, use the controls on the right end of the status bar at the bottom of the window. Click the word "Spaces" or "Tab Size" to switch whether you're using spaces or tabs, and change the indentation size by clicking on the number to the right.
One of the goals of Brackets is to make it easy to make quick edits to different bits of code without having to jump around between files.
Currently, Brackets has an early implementation of this. If you're in an HTML file, and you put the cursor inside a class or id attribute or a tag name, you can hit Ctrl/Cmd-E (for "edit"). Brackets will search the CSS files in the file tree for relevant rules, then open up an inline editor embedded in the HTML file that lets you make quick tweaks to one of the rules.
On the right side of the inline editor, Brackets shows the list of all rules that might be relevant to the selected tag/class/id. You can switch between the rules by clicking on them in the list, or using Alt-Up/Down Arrow.
You can make changes in the inline editor and save them, then close the editor by hitting Cmd-E again. Edits you make in the inline editor will be properly applied in Live Development mode (see below).
Brackets also has an early implementation of JavaScript support. If you are in some JavaScript code, you put the cursor in a function call, and hit Ctrl/Cmd-E. Brackets will search the JS files in the file tree for matching functions, then open up an inline editor embedded in the HTML file that lets you make quick edits to one of the functions.
Some things to note about this feature:
You can also use Quick Edit anywhere a hex color, rgb/rgba(), or hsl/hsla() appears to invoke the Color Picker to edit it inline. This includes shortcut swatches for other colors used in the file.
Eventually Brackets could leverage inline editing for lots of other kinds of things, like gradient and shadow editors for the selected CSS rule.
Another goal of Brackets is to bridge the gap between code editing and in-browser inspection. Currently, developers use tools like Firebug or the WebKit Web Inspector to inspect their page, debug problems, and try out quick tweaks to CSS properties in order to fix layout issues. Once they're done, they then have to remember what they did and then go back to their editor to fix the problems in the source code.
With Live Development, the idea is to tie Brackets more closely to the browser, so that you can make changes and debug from Brackets itself, and see the results instantly in the browser.
The initial implementation of this in Brackets is for CSS editing. If you open an HTML file, and then click the "lightning bolt" icon on the right side of the toolbar, Brackets will open the HTML file in Chrome. If you then make edits to CSS files used by that HTML file (either in an inline editor or just by opening up the CSS file), your edits will be instantly reflected in Chrome as you type.
If you save an HTML or JS file, it will auto-reload the browser preview. We're hoping to work on making these work more like true live development in the future.
While Live Preview is open, putting your cursor in an HTML tag in Brackets will highlight the matching element in the browser. Putting your cursor in a CSS rule will highlight all matching HTML elements. Use "File > Live Highlight" to toggle this off.
By default, Brackets previews files using a local http server that is included with Brackets. If you want to preview off a server, you can use File > Project Settings.... In the Base URL field, set the URL on the server that corresponds to the root of your project.
Some limitations of the current implementation:
As with Quick Edit, there are lots of ideas for how to extend this, including highlighting DOM nodes in the browser from Brackets, clicking on an item in the browser to jump back to its source code in Brackets, and setting JS breakpoints from Brackets.
Quick View makes it easy to visualize assets and colors in your code. Just hover your mouse over a color, gradient, or image reference, and a popover will appear showing a preview. You can toggle this feature on or off in the View menu.
Quick Docs brings documentation from webplatform.org right into your editor window, in a similar fashion to Quick Edit. In the current implementation, Quick Docs shows documentation on CSS property names and values. To use it, just put your cursor in a property name or value in a CSS file, and hit Ctrl/Cmd-K. To close the docs, hit Escape.
Brackets has initial support for code hints in HTML, CSS, and JavaScript files. Code hints generally pop up automatically, but you can manually bring them up with Ctrl-Space (note that this shortcut uses Ctrl even on Mac).
background), only for individual properties (e.g.
background-repeat).gsp for getScrollPos).A number of features, including Find/Replace, Find in Files, and everything in the Debug menu, aren't "official" features yet. They don't have final UI, aren't completely implemented, and might have significant bugs.
A couple of notes on unofficial features:
There is a large and growing body of extensions available for Brackets, many of which were written by community members, that add all kinds of interesting and useful functionality. You can install an extension using File > Extension Manager... or clicking the "brick" icon on the toolbar, then clicking the Install from URL... button at the bottom. From there, you can click on Browse Extensions to get to the list of Brackets extensions, which has further instructions on installation. You can also remove extensions from the Extension Manager dialog.
In Sprint 28, we've introduced a central registry of Brackets extensions that you can access by clicking the "Available" tab in the Extension Manager. This tab allows you to browse and search the list of available extensions and install or update them with one click. The registry doesn't yet have the full set of extensions from the original list, but over time it should become more complete. Extension developers can upload new or updated extensions to the registry at https://brackets-registry.aboutweb.com.
Here are some keyboard shortcuts that are worth knowing. Also see the Brackets Shortcut wiki page for a more complete list of shortcuts.
| Ctrl/Cmd-E | Open/close the inline editor. |
| Alt-Up/Down Arrow | Switch between rules in the inline editor. |
| Ctrl/Cmd-K | Open Quick Docs. |
| Ctrl-Space | Bring up code hints, if applicable. |
| Ctrl/Cmd-Shift-O | Bring up the Quick Open prompt. |
| Ctrl/Cmd-G | Go to a line in the current file. |
| Ctrl/Cmd-T | Go to a method in the current file. |
| Ctrl/Cmd-Shift-H | Show/hide the sidebar. |
| Ctrl/Cmd-Alt-P | Live preview. |
Last edited by Narciso Jaramillo,