Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ho-cooh/include-info
A VSCode extension for showing infos about your included files
https://github.com/ho-cooh/include-info
c cpp visual-studio-code
Last synced: 7 days ago
JSON representation
A VSCode extension for showing infos about your included files
- Host: GitHub
- URL: https://github.com/ho-cooh/include-info
- Owner: HO-COOH
- License: mit
- Created: 2021-03-05T21:16:53.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-08T22:55:10.000Z (over 3 years ago)
- Last Synced: 2024-10-30T08:23:47.555Z (about 2 months ago)
- Topics: c, cpp, visual-studio-code
- Language: TypeScript
- Homepage:
- Size: 550 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
![](logo.png)
![](https://vsmarketplacebadge.apphb.com/version/HO-COOH.include-info.svg)
![](https://vsmarketplacebadge.apphb.com/installs-short/HO-COOH.include-info.svg)
![](https://vsmarketplacebadge.apphb.com/rating-short/HO-COOH.include-info.svg)# include-info
Show info about your `` files!## Download
[here](https://marketplace.visualstudio.com/items?itemName=HO-COOH.include-info).
## Features
1. Show lines, file size and number of included files of your `#include ` directives.![](https://raw.githubusercontent.com/HO-COOH/include-info/master/screenshots/1.png)
2. Directly jump to included files when clicked on the info.
![](https://raw.githubusercontent.com/HO-COOH/include-info/master/screenshots/GoToHeader.gif)
## Requirements
A C++ language server, like [Microsoft's official C/C++ extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools) or [clangd](https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-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](https://github.com/microsoft/vscode-cpptools/issues/7124) and [this](https://github.com/microsoft/vscode/issues/118085). (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 `` 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!