GithubHelp home page GithubHelp logo

isabella232 / toggle-quotes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from atom/toggle-quotes

0.0 0.0 0.0 145 KB

An Atom package to toggle between single and double quotes

License: MIT License

JavaScript 100.00%

toggle-quotes's Introduction

Toggle Quotes

Build Status Dependency Status

Toggle a single-quoted string to a double-quoted string, and vice versa.

toggle-quotes-demo

This is a package for Atom, a hackable text editor for the 21st Century.

Usage

Place the cursor within a string and execute the Toggle Quotes: Toggle command to toggle that string between single and double quotes. Only available when using a grammar that supports single-quoted and double-quoted strings, or any other configured string character (e.g. JavaScript, Python, Ruby, etc.).

Commands

Command Description
toggle-quotes:toggle Toggles the quote characters used for quoted strings between the configured Quote Characters (' and " by default).

Keybindings

Command Linux OS X Windows
toggle-quotes:toggle Ctrl-" Cmd-" Ctrl-"

Custom keybindings can be added by referencing the above commands. To learn more, visit the Using Atom: Basic Customization or Behind Atom: Keymaps In-Depth sections in the flight manual.

Configuration

Configuration Key Path Type Default Description
toggle-quotes.quoteCharacters string '" The characters toggle-quotes:toggle toggles between. No whitespace.

You can add language-specific settings for languages with more exotic string delimiters. For example, this setting in your config.cson will add backticks in JavaScript files, but not in other kinds of files:

".js.source":
  "toggle-quotes":
    quoteCharacters: "\"'`"

Contributing

Always feel free to help out! Whether it's filing bugs and feature requests or working on some of the open issues, Atom's contributing guide will help get you started while the guide for contributing to packages has some extra information.

License

MIT License - see the LICENSE for more details.

toggle-quotes's People

Contributors

50wliu avatar aerijo avatar arcanemagus avatar ben3eee avatar benphelps avatar damieng avatar dmnd avatar jasonrudolph avatar joscarsson avatar kevinsawicki avatar maxbrunsfeld avatar mnquintana avatar queerviolet avatar savetheclocktower avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.