Code Monkey home page Code Monkey logo

vsce-total-lines-info's Introduction

Total Lines Info

Displays document total number of lines and total selected lines count in the status bar.

Extension showing total lines

Selected lines count is displayed to the right of total lines, and is hidden if no lines are selected.

Extension showing total lines in status bar

Extension showing total lines in status bar

Selected lines count is compatible with multiselect.

You can customize the status bar output format in the extensions settings. E.g.: Ln %d

Extension settings

A number of lines can be set to let the extension display a warning or error background if the file exceeds the given limit. This may be helpful if you want to maintain the size of your code files under control.

Thanks to akshit-arora for this contribution.

Extension Settings

This extension contributes the following settings:

  • linesinfostatusbar.alignment: left/right, status bar item alignment
  • linesinfostatusbar.totalDisplayFormat: Display format for the total lines count text, according to https://nodejs.org/api/util.html#util_util_format_format
  • linesinfostatusbar.selectedDisplayFormat: Display format for the selected lines count text, according to https://nodejs.org/api/util.html#util_util_format_format
  • linesinfostatusbar.statusbarPriority: number. Higher values means the info text items are displayed more to the left in the status bar
  • linesinfostatusbar.warningAtLineCount: number. Show status bar background as warning when total lines exceed this number. If set to 0 (default), no change is applied to background.
  • linesinfostatusbar.errorAtLineCount: number. Show status bar background as error when total lines exceed this number. If set to 0 (default), no change is applied to background.

Release Notes

0.0.8

Show error/warning background when lines of code exceeds set limit. (By akshit-arora)

0.0.7

Improved README.md. Added new screenshots.

0.0.4

Added extension icon. Added preview image. Updated extension title.

0.0.2

Fixed status bar item didn't hide when no editor was active.

0.0.1

Initial release. Adapted from extensions:

  • Show Line Count, by MPearon
  • Select Line Status Bar, by tomoki1207

vsce-total-lines-info's People

Contributors

peterafh avatar akshit-arora 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.