Giter VIP home page Giter VIP logo

vscode-sort-lines's Introduction

Functionality

Sort lines of text in Visual Studio Code. The following types of sorting are supported:

Command Title Comments
sortLines.sortLines Sort lines (ascending, case sensitive) Keybound to F9*
sortLines.sortLinesCaseInsensitive Sort lines (ascending, case insensitive)
sortLines.sortLinesCaseInsensitiveUnique Sort lines (unique ascending, case insensitive)
sortLines.sortLinesReverse Sort lines (descending, case sensitive) Reverse character code based sort
sortLines.sortLinesLineLength Sort lines (line length ascending)
sortLines.sortLinesLineLengthReverse Sort lines (line length descending)
sortLines.sortLinesVariableLength Sort lines (variable length ascending)
sortLines.sortLinesVariableLengthReverse Sort lines (variable length descending)
sortLines.sortLinesNatural Sort lines (natural) Sorts alphabetically but groups multi-digit numbers (Wikipedia)
sortLines.sortLinesUnique Sort lines (unique ascending, case sensitive) Regular character code keeping only unique items
sortLines.sortLinesShuffle Sort lines (shuffle)
sortLines.removeDuplicateLines Sort lines (remove duplicate lines)

* Note that this overrides the toggle breakpoint keybinding, you can unbind it by adding this to your keybindings.json file:

`{ "key": "f9", "command": "-sortLines.sortLines", "when": "editorTextFocus" }`

Settings

Name Description Default
sortLines.filterBlankLines (boolean) Filter out blank (empty or whitespace-only) lines. false
sortLines.sortEntireFile (boolean) Sort entire file if no selection is active. false

Install

  1. Open VS Code
  2. Press F1
  3. Type "install"
  4. Select "Extensions: Install Extension".
  5. Select sort-lines from the list

Install animation

Usage

Select the lines to sort, press F1 type sort and select the desired sort. The regular sort has the default hotkey F9.

Usage animation

vscode-sort-lines's People

Contributors

tyriar avatar dependabot[bot] avatar gerrit-k avatar lynxnake avatar softwareape avatar pustur avatar carl-mr avatar chrsmutti avatar labithiotis avatar eldaw avatar prplx avatar mhavas avatar petty avatar roscop avatar wald-tq 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.