Skip to content

A VSCode extension for showing infos about your included files

License

Notifications You must be signed in to change notification settings

HO-COOH/include-info

Repository files navigation

include-info

Show info about your <included> files!

Download

here.

Features

  1. Show lines, file size and number of included files of your #include <file> directives.

  1. Directly jump to included files when clicked on the info.

Requirements

A C++ language server, like Microsoft's official C/C++ extension or clangd.

Extension Settings

This extension contributes the following settings:

  • Include Info.Auto Show Include Info
  • Include Info.File Size Unit
  • Include Info.File Size Decimal Digit
  • Include Info.File Line Number Seperator

Known Issues

  • Does NOT recursively scan the included files in the included file, because of this vscode api issue I raised and this. (Code is already there, will update as soon as it get resolved.)
  • Does NOT take conditional macros into account. Need significant effort to solve that, maybe using a real language server. (Contributions are greatly appreciated)

Plan

  • Add something like a tooltip that lists all the included files when clicked and jump to that file
  • Help remove unnecessary include (might need a language server)

Release Notes

  • 1.2.2 Use onDidChangeConfiguration instead of checking it every time
  • 1.2.1 Fix Auto size bug.
  • 1.2.0 Include file lists can now distinguish <file> and "file"
  • 1.1.2 More optimizations
  • 1.1.1 Clean up code, optimize performance
  • 1.1.0 Add tooltip for listing included files
  • 1.0.0 First release!

About

A VSCode extension for showing infos about your included files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published