Questions tagged [adobe-brackets]

Adobe Brackets is an open source text editor originally created by Adobe. It is primarily used for development/editing of HTML, CSS and JavaScript projects, but it supports all files.

Adobe Brackets is an open source text editor developed by Adobe. It is primarily used for development/editing of HTML, CSS and JavaScript projects, but it supports all files. The important thing about Brackets is that it has been developed in HTML, CSS and JavaScript. It keeps in sync with the browser, which means that every time you edit some code, the changes will be reflected in the browser on the fly. This helps eliminate the need for Firebug CSS debugging. Brackets development is still active and more features are yet to come.

Initial release: November 4, 2014

Stable release: Brackets 2.1.2 (Jul 12, 2022)

Latest release: Brackets 2.1.3 Windows only patch release (Oct 31, 2022)

Features

Brackets provides several features including:

  • Quick Edit
  • Quick Docs
  • Live Preview
  • JSLint
  • LESS Support
  • Theseus Integration
  • Open Source
  • Extensibility

Quick Edit

Quick edit enables inline editing of CSS, Color Property, and JavaScript elements for developers. This built-in feature can be applied to multiple functions or properties simultaneously and all updates are applied directly to the file associated with the changed elements.

  • HTML File

    Applying quick edit to HTML elements will display all corresponding CSS properties in a box beneath the selected element. Users can choose to create new CSS rules directly within the editor and edit a tag's CSS properties inline without leaving the context of the HTML file.

  • JavaScript File

    On JavaScript functions, quick edit performs the same procedure as with HTML elements but displays the selected function’s body within the drop down box. All updates to the function’s body will propagate and update directly within the corresponding JavaScript file.

  • Files containing Hex or RGB color properties

    For color properties, quick edit will return an inline color picker for previewing and color adjustment functionality.

Live Preview

Using Live Preview, Brackets pushes code edits instantly to the browser to present an updated page without having to reload.

Two scenarios to Live Preview:

  • No Back End Logic:

    Using Live Preview, Brackets will launch the chosen HTML file in Google Chrome by supplying static content from Brackets built-in server. This procedure does not require any back end logic to support viewing changes to the HTML file.

  • Back End Logic:

    With back end logic, Brackets will direct Google Chrome to a provided project URL running on a separate server but will disable support for HTML-related features. As a result, the browser will not be able to update any HTML, PHP, etc. files in real time and element highlighting will also be disabled for these files. Only edits and element highlighting related to CSS files will be reflected in real time. All non-CSS file updates will be auto-reloaded instead. These limitations exist because providing live editing functionality for HTML files requires injecting annotations into the HTML code before the code is loaded into the browser. These injections are normally handled by Brackets built-in server but are non-existent when projects make use of separate personal servers.

Functionality

  1. HTML & CSS real time updates (without reloading)
  2. Element Highlighting: Elements selected in HTML and CSS files are highlighted within the browser.

Live preview limitations

  • Currently only works with desktop Google Chrome (not open-source Chromium), as the target browser.
  • Opening developer tools in Google Chrome will close all live development connections.
  • All files to be viewed must be inside a currently open folder in Brackets.
  • Only one HTML file can be previewed at a time.
  • Real time updates are paused when syntactically invalid HTML is encountered. Brackets will resume pushing changes to the browser when the syntax is corrected.

Theseus Integration

Theseus is an open-source JavaScript debugger for Brackets that enables developers to set break points, step through code, and inspect the value of variables in real time. Theseus can be used to debug any extension in Brackets and is easily installed using the built-in extension manager. Theseus also works in conjunction with Live Preview through a proxy server that records a function and its associated values every time the function is called.

Functionality

  • Displays number of times a function is called next to the function’s definition.
  • Logs all arguments received, values returned, and exceptions thrown by a function call within Brackets.

Quick Docs

Related to quick edit, quick docs is a feature used to display relevant documentation inline. In a CSS/LESS/SCSS file, quick docs will open inline documentation for any selected property. Quick Docs can also be applied to multiple properties simultaneously.

Extensions

Being built with HTML, CSS, and Javascript, developers can provide additional functionality to Brackets by creating extensions. These extensions can be found and installed using the built-in extension manager. Extensions can also be found online via Brackets Extension Registry.

546 questions
4
votes
3 answers

Error: "angular was used before it was defined" but online editors able to output the result

I couldn't get an output from this code when I ran it my local machine but the weird part is online editors able to give me an output: http://codepen.io/anon/pen/waXGom *Im using Adobe Brackets editor Here is my HTML code: …
RAOUL
  • 41
  • 1
  • 1
  • 2
4
votes
2 answers

Debug Java in Brackets editor or Visual Studio Code

I really hate the IDE. They are too heavyweight and add a bunch of IDE specific files and folders and whatnot when creating a project. For the sake of making things easier, I use code editors. My favorite are Brackets and Microsoft's cross platform…
4
votes
1 answer

How can I configure autocomplete for project in Brackets?

I'm using Brackets for development applications on the Node.JS. As I know Brackets relies on the TernJS library. When I add the root of the project file named .tern-project with the following lines, I do not see any change in the autocomplete. { …
AlexMalinin
  • 77
  • 2
  • 5
4
votes
1 answer

How to find and replace across multiple documents using Adobe Brackets

ive decided to give the text editor [brackets] a trial. Im just wondering is there a way to find and replace in all open documents using brackets ? I can see a find and a replace option, but ive got to hunt down alot of content across multiple…
user125264
  • 1,809
  • 2
  • 27
  • 54
4
votes
2 answers

Adobe Brackets IDE & CORS when developing locally

Since Brackets seems to start a new instance of Chrome, (how) can I make it start Chrome with the --disable-web-security option, in order to get around CORS problems when developing both the client & server on my local machine?
Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551
4
votes
4 answers

How to configure Brackets as git core.editor in Windows

I'm trying to configure Git to use Adobe's Brackets as the core editor on my Windows 7 laptop. I'm using Git Bash. I have it working on a Mac at school, so I know it's possible (although after saving a file that Git opens in brackets for me to edit,…
evanjw
  • 49
  • 1
  • 4
4
votes
1 answer

jQuery won't work on brackets editor

So, hi. I've tried everything I know and don't know, and I simply can't make it work. Yes, I have a script tag in my html skeleton. I also tried downloading…
Marcelo Perrella
  • 127
  • 1
  • 2
  • 9
3
votes
2 answers

How Do I Format .json Files In Bracket?

Ok so, im trying to edit files for some programs im downloading. And almost all of them use .json files. I try to open them with Atom, Notepad++, Sublime Text Editor 3, And Brackets. But when I open them, all of the code is on 1 line, exept when I…
Tom Ribbertry
  • 133
  • 1
  • 1
  • 6
3
votes
2 answers

Brackets Default Theme Location

Brackets comes with two themes installed, "Backets Light (Default)" and "Backets Dark". To see them, go to View | Themes... I really like the "Brackets Dark" theme and I'd like to create a duplicate syntax theme of it for GitHub's Atom editor. I'm…
CSquared
  • 155
  • 3
  • 11
3
votes
1 answer

Brackets - Live Preview in chrome even after brackets was uninstalled

I uninstalled Brackets from Ubuntu 16.04 using the commands: $ sudo apt-get remove brackets $ sudo add-apt-repository --remove ppa:webupd8team/brackets But now whenever I try to open google chrome, it opens the following window: And even the name…
shan_1.0
  • 87
  • 1
  • 10
3
votes
1 answer

How do I compile LESS code using Brackets?

I use Brackets as my text editor. How can I compile and convert my LESS code into CSS? The following is a link from where I downloaded the LESS compiler but I don't know how to convert my code into…
Chirag Bhansali
  • 1,900
  • 1
  • 15
  • 22
3
votes
3 answers

How to install Sass in brackets text editor

Duplicate Question? Yes it is. But a little bit different from this Overview: I am also a new user of the brackets text editor. I know the difference between Scss & Sass. But the reason why I am using brackets text editor is for just Sass not Scss.…
Ahmer Ali Ahsan
  • 5,636
  • 16
  • 44
  • 81
3
votes
2 answers

How do I properly add custom CSS to a Bootstrap Modal

I am writing an Extension for the Text-Editing software called Brackets, Brackets uses Bootstrap to style the Modal and CSS. I am trying to add custom CSS to the Modal so that I can reformat, move and resize different elements on the Modal such as…
jward01
  • 750
  • 4
  • 11
  • 26
3
votes
1 answer

How to change the color of PHP tags in Brackets

I am working on a custom theme for Brackets (http://brackets.io/) and I am wondering if there is a way that I can specifically change the color of php tags. The parts between asterisks below would be red: ** I have been…
Marc
  • 4,661
  • 3
  • 40
  • 62
3
votes
1 answer

How to set a static port for Brackets live preview?

My application is using localstorage and in order to test and make sure everything is working properly, I wanted to set a specific port for Brackets live preview option, curious as to how this can be done Saw the following pull request but unsure…
user3721307
  • 199
  • 2
  • 12