Giter Site home page Giter Site logo

vscode-toggle-case's Introduction

Change Case

Build Status

Since changing the case is a frequent requirement during development and general writing, there needs to a better way to do this. This VS Code Extension provides a faster, easy to remember and user friendly ways to change case of the selected text.

You can use Keyboard Shortcut, MacOS Touchbar or VS Code Command Palette to change the case.

This extension supports multiple ways to change the case and it works on both single and multi cursors.

Usage

  • Press the defined keybord shortcut to toggle through various cases. And dont worry you will never loose your original text since that is also included in the cycle.

    • Cmd + M on MacOS
    • Ctrl + M on Windows

    Working

  • This works with multi lines selection as well

    Working

  • Or if you want to change text to a particular format, you can select the text (multiple selection works too) and open Command Pallette (defaults to Cmd + Shift + P in MacOS) and start typing Change case to and select the required case.

    Working

  • Or if you are using a mac with a touch bar, the moment you select some text on the VS Code editor, a button will popup on your touchbar. You can press this to toggle through multiple cases.

    Working

Case Supported

You can toggle through multiple cases, you can find the complete list below:

  • UPPERCASE
  • lowercase
  • Title Case
  • camelCase
  • CONSTANT_CASE
  • dot.case
  • Header-Case
  • kebab-case
  • PascalCase
  • path/case
  • Sentence case
  • snake_case

This extenion is using some functions of change-case.

Settings

The extension supports the following setting. Navigate to Preferences > Setting > Toggle Case

  • You can enable/disable any case from being the part of the loop.
  • You can turn notification on/off showing the case text is transformed to.
  • Navigate to Preferences > Keyboard Shortcuts to change default keybinding of Cmd + M / Ctrl + M to your liking.

Installation

Launch VS Code Quick Open (Ctrl/Cmd+P), paste the following command, and press enter.

ext install toggle-case

Or you can use this VS Code Marketplace link of the extension to download it directly to VS Code.

Support

Log a issue or reach out to me at [email protected]

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.