Tag Archives: brackets

Code Editor `Brackets` 1.9 Released, Available In PPA

Brackets is a free, open source code editor focused on front-end web development (HTML, CSS and JavaScript).

The application, which was originally developed by Adobe, is available for Linux, Windows and MacOS.

Brackets editor Linux

Since I haven’t written about Brackets in a while, here’s a quick list of its main features:
  • live preview: see your changes in real time in a web browser (by default, this only supports Google Chrome, but there’s also experimental support for other browsers – you can enable it from the Brackets File menu);
  • inline editor: simply put your mouse cursor on a CSS ID, press Ctrl + E and Brackets displays the CSS selectors inline;
  • supports extensions and comes with a built-in extension manager, with hundreds of themes and extensions available to install.

Brackets extension manager

Changes in Brackets 1.9 include:

  • reverse inspect in Live Preview (clicking an element in Live Preview highlights the corresponding tag in the source code);
  • the application now supports “Replace All” in Find & Replace along with batch operation;
  • the Extension Manager now displays the download count for listed extension, and it allows sorting based on download count or published date. Thanks to this, you can easily find the most popular and the latest extensions;
  • focus can now be swapped between panes using a keyboard shortcut (Alt + w);
  • language mode can now be changed for untitled documents (and code coloringand code hints are now supported for such documents);
  • GitHub organizations can now own Brackets extensions and update them.

A complete changelog is available HERE.

Important! There are two issues with Brackets on Linux.
The first is that to close the application, you must click the close button twice.

And the second issue is that the official Brackets Debian / Ubuntu debs depend on libgcrypt11, which is not available in Ubuntu versions newer than 14.10.

This last issue is fixed if you install libgcrypt11 from an older Ubuntu version, if you upgraded from Ubuntu versions older than 15.04 (so libgcrypt11 is still installed on your system), or if use the WebUpd8 Brackets PPA (there are also direct PPA deb download links below), which should work in any Debian-based Linux distribution, including Ubuntu, Linux Mint and so on.
For more about Brackets, check out its website and wiki.

Download Brackets

(32bit and 64bit debs – only work with Ubuntu 14.10 or older unless you install libgcrypt11 manually or use the PPA -, MacOS and Windows binaries)

To install the latest Brackets in Ubuntu 17.04, 16.10, 16.04 or 14.04 / Linux Mint 18.x or 17.x / Debian 8+ (see how to add a PPA in Debian HERE) by using the WebUpd8 Brackets PPA, run the following commands:
sudo add-apt-repository ppa:webupd8team/brackets
sudo apt update
sudo apt install brackets

Alternatively, download the WebUpd8 Brackets PPA debs from HERE.

Fedora users can install Brackets by using an unofficial copr repository (not yet updated to version 1.9 at the time I’m posting this article).

Arch Linux users can install Brackets from AUR (not yet updated to version 1.9 at the time I’m posting this article).

Read More

Fix Missing libgcrypt11 Causing Spotify, Brackets And Other Apps Not To Work / Install In Ubuntu 15.04

In Ubuntu 15.04 Vivid Vervet (any flavor, be it Xubuntu, Ubuntu MATE, Kubuntu, etc.), libgcrypt11 is no longer available in the repositories (it uses libgcrypt20 only) and some applications like Spotify, Brackets and others cannot be installed or they don’t run unless libgcrypt11 installed:

$ spotify
spotify: error while loading shared libraries: libgcrypt.so.11: cannot open shared object file: No such file or directory

or:

$ sudo dpkg -i Brackets.1.2.Extract.64-bit.deb
..............................
dpkg: dependency problems prevent configuration of brackets:
 brackets depends on libgcrypt11 (>= 1.4.5); however:
  Package libgcrypt11 is not installed.

dpkg: error processing package brackets (--install):
 dependency problems - leaving unconfigured
Processing triggers for hicolor-icon-theme (0.14-0ubuntu1) ...
Errors were encountered while processing:
 brackets

Until these third-party application are repackaged to depend on libgcrypt20 instead of libgcrypt11 or they ship with the libgcrypt11.so library so they work properly in Ubuntu 15.04 Vivid Vervet, here’s a quick fix/workaround.
I should mention that this only affects fresh installs of the final Ubuntu 15.04 release. I installed Ubuntu 15.04 while it was still in alpha and back then, libgcrypt11 was already available (and it’s still installed today) so I didn’t notice the issue until it was reported by a few WebUpd8 readers (thanks to Ian Watters, Patrick and Lulzim for the comments regarding this!).
To be able to use Spotify, Brackets and other apps that require libgcrypt11 in Ubuntu 15.04, all you have to do is install libgcrypt11 from an older Ubuntu version, such as Ubuntu 14.04 LTS:

Or grab libgcrypt11 debs for any architecture from HERE.
Important: on 64bit, you may also need to install the 32bit package if the app that requires libgcrypt11 uses a multiarch package.

Once installed, Spotify, Brackets, etc. should work under Ubuntu 15.04:

Spotify Ubuntu 15.04
Brackets note: this issue occurs with the official Brackets debs but not with the Brackets version from the WebUpd8 Brackets PPA (I fixed this issue for the PPA packages today).

Read More

Brackets Editor 0.44 Released With Split View

Brackets was updated to version 0.44 recently, getting one of the most requested features: vertical and horizontal split view, so you can now view files side by side or one above another.

The new slip view feature can be accessed either from the View menu or from the icon next to Working File (left pane). For now, it’s not possible to view the same files in both panes though.

Brackets Linux split view

The latest Brackets 0.44 also introduces Quick Docs support for vendor-prefixed CSS properties, project tree improvements along with new preference: show cursor in selected text – by default, Brackets hides the blinking cursor when you have a text selection and this behavior can now be disabled. The complete Brackets 0.44 changelog can be found HERE.
For those not familiar with Brackets, this is an open-source code editor for web design and development built on top of web technologies such as HTML, CSS and JavaScript, available for Linux, Windows and Mac OS X.
The application was originally created by Adobe, but is now maintained by the community, and features a quick edit mode that brings the relevant CSS for the selected tag in the main editor or live browser previews – the changes are pushed instantly to the browser (Chrome only), without having to save the changes or reload the page.
Furthermore, Brackets supports extensions for adding extra functionality – more than 400 extensions (at the time I’m writing this article) can easily be installed through the built-in Extension Manager.
Note that on Linux, there are a few known issues – for instance, Brackets doesn’t close when first clicking the window close buttons so you must click on close again and also, there are no native OS menus (HTML menus are used as fallback).

Install Brackets in Ubuntu

The Brackets websites offers deb files for download (see below) however, if you want to receive automatic updates in Ubuntu / Linux Mint and derivatives, you can install Brackets by using the WebUpd8 Brackets Ubuntu PPA. To add the PPA and install Brackets, use the following commands:
sudo add-apt-repository ppa:webupd8team/brackets
sudo apt-get update
sudo apt-get install brackets

Download Brackets

Download Brackets (binaries available for Debian/Ubuntu, Windows and Mac OS X as well as source code)

Arch Linux users can install Brackets via AUR: 1 | 2 (bin).

For bug reports, etc., see the Brackets GitHub page.

Read More