Giter Site home page Giter Site logo

jeremywiebe / rewrap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stkb/rewrap

0.0 1.0 0.0 1.08 MB

Rewrap extension for VSCode and Visual Studio

Home Page: https://marketplace.visualstudio.com/items/stkb.rewrap

License: Other

JavaScript 10.18% C# 22.76% F# 54.35% TypeScript 12.66% Shell 0.05%

rewrap's Introduction

Latest version: 1.14.0. New in this version (full changelog):

  • Auto-wrap can now be enabled per-language (see docs).
  • Add Clojure, Common Lisp, Emacs Lisp, Scheme, J and PostgreSQL.
  • Markdown: preserve line-breaks after a <br> tag.
  • Declare as a UI extension so it doesn't have to be installed in the remote workspace; fixes locally-installed language extensions not being found when used with remote workspaces.

Rewrap

Reformats code comments and other text to a given line length. For VSCode and Visual Studio.

Example

Similar to wrap/fill paragraph in Sublime (alt+q) Emacs (M-q) or Vim (gq); but more powerful.

Features

  • Re-wrap single & multiline comment blocks in many languages. Also configure settings per language.
  • Smart handling of contents, including java/js/xmldoc tags and code examples.
  • Can select lines to wrap or multiple comments/paragraphs at once (even the whole document).
  • Also works with Markdown documents, LaTeX or any kind of plain text file.

Using

The main Rewrap command is: Rewrap Comment / Text, by default bound to Alt+Q.

Put the text cursor inside a comment line, block or plain text paragraph and invoke the command to wrap to the preset column (default is 80). You can also select just a few lines, or multiple comments in one selection.

Also available is an Emacs-style auto-wrap/fill mode.

See the Features page for more examples on how to use.

Configuring

See the docs for pages on configuring settings and keybindings.

Supported languages

Most common languages are supported. For any other type of file, plain-text paragraph wrapping is still supported.

Please report any issues, suggestions or feature requests you have in issues!

rewrap's People

Contributors

stkb avatar bradleyayers avatar lgo avatar adrn avatar alanag13 avatar acmiyaguchi avatar carlreinke avatar erikswan avatar jyasskin avatar mk12 avatar sighery avatar wilstead avatar dependabot[bot] avatar

Watchers

James Cloos 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.