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!
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.
filesize with the status bar component active in simple view:
filesize with the status bar component active in expanded view (with gzip enabled):
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:
This package has the following user-configurable settings:
displayInfoOnTheRightSideOfStatusBar: Show the status bar info on the right side instead of the left. (Default:false)showBrotli: Show the calculated brotli-compressed size in the detailed info view. (Default:false)showGzip: Show the calculated gzip-compressed size in the detailed info view. (Default:true)showGzipInStatusBar: Show the calculated gzip-compressed size directly in the status bar. (Default:false)use24HourFormat: Use the 24-hour clock format for time display; set tofalsefor 12-hour format. (Default:true)useDecimal: Display file sizes using the SI unit system; set tofalseto use IEC's format. (Default:false)
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.


