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
5
votes
1 answer

Find new lines in Adobe Brackets

I'm trying to do a find and replace on a file to get rid of line breaks using Adobe Brackets. However, when I enter \n in the search field, even with Regular Expression turned on, it says No results. Is there a way to find newlines within…
jpyams
  • 4,030
  • 9
  • 41
  • 66
5
votes
1 answer

How to disable JSLint ES6 errors with const and let in Adobe Brackets?

I have Googled and looked through this site everywhere, but I can only find answers for JSHint instead of JSLint. To get rid of the "use function form of use strict" error I add in /*jslint node: true */. But to disable errors for using const and…
5
votes
1 answer

CodeMirror: How to read editor text before or after cursor position

I'm trying to find a way to test if the cursor is preceded by a specific string and then trigger an event. Example of what I'm trying to do: User clicks somewhere inside the editor, a cursorActivity (cursor or editor changed) event is fired, I…
Deftwun
  • 1,162
  • 12
  • 22
5
votes
1 answer

HTML Beautify Settings in Brackets

I understand that the Brackets Beautify extension is based on JS Beautify, and that I have a suite of preference settings available because of that, but I have no idea of how to alter them through the Brackets settings.json file. Does anyone have…
TheComte
  • 133
  • 1
  • 1
  • 6
5
votes
1 answer

Change the default directory for Brackets

I have tons of files in my home directory (~), and each time I open Brackets, it tries to load and index all the files there. Eventually, after freezing for a minute, it throws the error: Error Indexing Files: The maximum number of files have been…
dayuloli
  • 16,205
  • 16
  • 71
  • 126
5
votes
1 answer

How to write TypeScript and CoffeeScript in Brackets?

I want to write TypeScript and CoffeeScript in the Brackets code editor, but I am having difficulties. How do I compile it to vanilla js? How to refer it in the html page?
5
votes
1 answer

Writing a custom mode for CodeMirror, for use in Brackets

I am trying to write a plugin/extension for Brackets that will handle PowerShell. Well after looking into it, I found that CodeMirror also doesn't have a PowerShell mode, so I need to create it myself. I am having a terrible time because there are…
5T4TiC
  • 191
  • 2
  • 2
  • 6
5
votes
2 answers

Adobe Brackets - debugging Node.js & Node-inspector

Quick question: Is it possible to use Adobe Brackets to debug Node.js using Node-inspector. Like be able to step debug in Adobe Brackets? Thanks Regards Chris
Chris G.
  • 23,930
  • 48
  • 177
  • 302
4
votes
1 answer

php runtime not found. install the php7 runtime and update "executablepath" in php

I'm running ubuntu 18.04 and trying to develop a php project using Brackets text editor. But i getting error: PHP runtime not found. Then I installed the php7 runtime and update "executablePath" in PHP preferences appropriately. I tried to…
Abhishek Aarya
  • 51
  • 1
  • 1
  • 3
4
votes
2 answers

Brackets won't let me change the background colour of even a blank document using external CSS

I have been using Brackets for a school image and was trying to move div tags next to each other but was experiencing no change in visuals of the code and I wanted to check if there is an issue with the external CSS so I tried to change the…
G.Ward
  • 51
  • 5
4
votes
1 answer

Unable to run npm command "npm install -g tty.js".

***Unable to run npm command "npm install -g tty.js". Here is the error log I am getting :*** =D:\Users\pjha\AppData\Roaming\npm\node_modules\tty.js\node_modules\ws (node-gyp rebuild 2> builderror.log) || (exit 0) …
Praful Jha
  • 187
  • 4
  • 18
4
votes
1 answer

Is Brackets website and text editor safe to use?

Mozilla recommends Brackets as a text editor for beginners (Link). After clicking the link Chrome states that the website isn't secure. Can others confirm that Brackets software and their website is safe to use?
Ben Carp
  • 24,214
  • 9
  • 60
  • 72
4
votes
3 answers

WebStorm modifies URLs

We use two IDEs for developing Angular.js applications: Brackets v1.7 + WebStorm v2016.2 When opening an application via Brackets IDE, URLs are shown as expected: http://127.0.0.1:55738/index.html#/distributor But when I open the same URL from…
vitaly-t
  • 24,279
  • 15
  • 116
  • 138
4
votes
1 answer

How to find a file in the project file tree in Brackets

I'm wondering if there is a way (either built in or by using an extension) to find a file (not a string in a file) in the file tree of the project in Brackets. This is so if I have many folders and files, I don't have to look for the file manually.…
Sean12
  • 667
  • 1
  • 5
  • 14
4
votes
2 answers

How to hide the bottom info panel (status bar) in the Brackets editor?

Is possible to hide the bottom panel in Brackets? The one with lines and columns on the left and possible error messages, the language and some other details on the right. I really like the Brackets code editor but unfortunately I have to work on a…
Ultimate_Noob
  • 41
  • 1
  • 1
  • 4
1 2
3
36 37