mkxml / vscode-filesize

filesize package for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=mkxml.vscode-filesize
MIT License
60 stars 13 forks source link

filesize package for Visual Studio Code

This package is intended for use with the Visual Studio Code editor and it displays the size of the focused file in the status bar of the editor.

Bonus: If you click on the status bar component it will display more information about the file!

Installation

In VS Code, press Ctrl-P or Cmd-P (Mac) and type in ext install vscode-filesize. Click install in the left bar. Once the extension is installed you will be prompted to restart Visual Studio Code.

Or you can just search for filesize in the extension search bar inside the editor.

Screenshots

filesize with the status bar component active in simple view:

status bar component

NEW! Expanded view

filesize with the status bar component active in expanded view (with gzip enabled):

status bar component

Detailed view

To open the detailed view for the current file in focus you can just click at the size in the status bar or use Crtl-shift-' or Cmd-shift-' if you are on a Mac.

filesize with the detailed info panel open:

detailed info

Settings

This package has two user configurable settings:

Contributing

You are welcome to send any issues or pull requests.

Please run eslint in the code and test it with Visual Studio Code before sending changes.

Any bugs? Please file an issue.

Did something nice with the code? Please send a pull request.

Authors

License

MIT