Giter Site home page Giter Site logo

sublime-togglequotes's Introduction

ToggleQuotes is a Sublime Text plugin which lets you easily toggle quote marks in your code.

Installation

With Package Control

If you have the Package Control package installed, you can install ToggleQuotes from inside Sublime Text itself. Open the Command Palette and select "Package Control: Install Package", then search for ToggleQuotes and you're done!

Without Package Control

Go to your Sublime Text 2 Packages directory and clone the repository using the command below:

git clone https://github.com/spadgos/sublime-ToggleQuotes.git ToggleQuotes

Don't forget to keep updating it, though!

Example

Make one or more selections of strings including their quotes and then press the opposite quote mark. That is, if you have "test" press ', if you have 'test', press ".

// With this selected:
"test"
// Press: '
// Result is:
'test'

Internal quotes are escaped, and already-escaped quotes are unescaped for you:

// With this selected:
"hello 'world'"
// Press: '
// Result is:
'hello \'world\''

// With this selected:
'hello \'world\''
// Press: "
// Result is:
"hello 'world'"

If you have multiple selections which have different quote marks, you can toggle them all by pressing Ctrl+'

You can also toggle the quote marks of a string by simply putting your cursor inside the string and pressing Ctrl+'. The selection will expand to the entire string automatically.

Version History

  • 1.1.0 January 15, 2012
    • Added Ctrl+' hotkey to expand to selection inside of strings.
  • 1.0.0 November 8, 2011
    • First release

sublime-togglequotes's People

Contributors

i-akhmadullin avatar sinan avatar spadgos avatar

Watchers

 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.