Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

All source mixes quote styles #1100

@rwaldron

Description

@rwaldron

Brackets source code should consistently use double quotes for JS string literals and HTML attribute values. With one exception: if the code is inside a string literal (which already uses double quotes), use single quotes instead to avoid escaping.

The current codebase mostly follows these styles, but it's inconsistent in a few places.

Examples:

// JavaScript
var foo = "some text";
var htmlCode = "<div id='some-id' class='some-class'></div>";

<!-- HTML -->
<div id="some-id" class="some-class"></div>

original description:
I'm not advocating for either, but perhaps a definitive decision to use either single or double throughout the entire code base would be beneficial for maintainability.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions