Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.
/ vscode_ipch_cleaner Public archive

Little bash script for delete temporary IntelliSense VSCode ipch folders

Notifications You must be signed in to change notification settings

Iipal/vscode_ipch_cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

VSCode ipch cleaner

About:

Little bash script for delete temporary C/C++ IntelliSense VSCode ipch folders.

What is ipch folders ?

IPCH - IntelliSense Precompiled Header File

Contains precompiled header information used by IntelliSense, Microsoft's code assistance module used for code hinting, documentation, and autocompletion while the programmer types source code.

You can easily find this folder in .vscode folder in you project folder (also it's ${workspaceFolder}/.vscode).

Additional:

Be sure this script have permission to run:

chmod u+x vscode_ipch_cleaner.sh

Flags:

If you run it without arguments, it's will delete all ipch folders from your home directory(~).
Flag Description Argmunets
-f Finds all ipch folders from the specified directory. (default: ~) Directory. (Optional)
-p Deleting all ipch folders from the specified directory. (default: ~) Directory. (Optional)
-q Activate quiet mode. (No deleting info output) 1: Directory. (Necessary) 2: Path to file in which will be printed output from quiet mode. (Nccessary)

Last line in scripts output "find: ...: No such file or directory" tell you about what all works fine and this folder successly deleted.

Recomendation

Most effectivly way to use this script it's create alias without output info and add it's to your .[bash/zsh]rc:

echo "alias ipch_clear='~/vscode_ipch_cleaner/vscode_ipch_cleaner.sh -q ~ /dev/null'" >> ~/.zshrc

or similar equivalent:

echo "alias ipch_clear='~/vscode_ipch_cleaner/vscode_ipch_cleaner.sh >> /dev/null'" >> ~/.zshrc

Something else...

Or you can set maximum cache size in Mb in VSCode settings:

"C_Cpp.intelliSenseCacheSize": 1024

whatever...

About

Little bash script for delete temporary IntelliSense VSCode ipch folders

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages