Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Sample file exclusion list for Visual Studio Code
- Visual Studio Code is an utterly superb tool. Undoubtedly one of the best IDE's out there; I personally use VSCode for general scripting, as a massive text/Markdown/JSON/YAML workspace organizer for both personal and work projects, and as a journaling and note-taking tool that can replace everything from Notepad++ to Excel.
- Any user of VSCode will be familiar with the **files.exclude** object when using the built-in settings editor for both user and workspace-level configuration. Given that my workflow involves a number of different technologies, I've had to create a list to cater for file types that I sometimes import, export, or work with within a directory monitored by VSCode.
- The JSON list below adds to the default exclusion list, and adds the following:
- * Zipped and image-based archives
- * Common Adobe source files
- * Microsoft Office, OpenOffice, and LibreOffice files
- * Common images, video, and audio formats
- * Executables, packaged binaries and common system files
- * Common portable book formats
- * Public and private key formats (except ASCII)
- ```
- {
- "files.exclude": {
- "**/*.zip": true,
- "**/*.7z": true,
- "**/*.rar": true,
- "**/*.tar": true,
- "**/*.gz": true,
- "**/*.tgz": true,
- "**/*.bz2": true,
- "**/*.psd": true,
- "**/*.psb": true,
- "**/*.ai": true,
- "**/*.eps": true,
- "**/*.indd": true,
- "**/*.ps": true,
- "**/*.xmp": true,
- "**/*.lrcat": true,
- "**/*.swf": true,
- "**/*.pdf": true,
- "**/*.doc": true,
- "**/*.docx": true,
- "**/*.dot": true,
- "**/*.dotx": true,
- "**/*.xls": true,
- "**/*.xlsx": true,
- "**/*.xlt": true,
- "**/*.xltx": true,
- "**/*.ppt": true,
- "**/*.pptx": true,
- "**/*.pot": true,
- "**/*.potx": true,
- "**/*.odt": true,
- "**/*.ott": true,
- "**/*.odm": true,
- "**/*.odf": true,
- "**/*.ods": true,
- "**/*.ots": true,
- "**/*.odg": true,
- "**/*.otg": true,
- "**/*.odp": true,
- "**/*.odb": true,
- "**/*.otp": true,
- "**/*.key": true,
- "**/*.sxw": true,
- "**/*.stw": true,
- "**/*.sxc": true,
- "**/*.stc": true,
- "**/*.sxi": true,
- "**/*.sti": true,
- "**/*.tex": true,
- "**/*.png": true,
- "**/*.jpg": true,
- "**/*.jpeg": true,
- "**/*.gif": true,
- "**/*.ico": true,
- "**/*.bmp": true,
- "**/*.tif": true,
- "**/*.tiff": true,
- "**/*.svg": true,
- "**/*.mp4": true,
- "**/*.mpg": true,
- "**/*.mpeg": true,
- "**/*.mkv": true,
- "**/*.flv": true,
- "**/*.avi": true,
- "**/*.mov": true,
- "**/*.au": true,
- "**/*.aiff": true,
- "**/*.flac": true,
- "**/*.wav": true,
- "**/*.ogg": true,
- "**/*.mp3": true,
- "**/*.aif": true,
- "**/*.mid": true,
- "**/*.wma": true,
- "**/*.mpa": true,
- "**/*.vob": true,
- "**/*.exe": true,
- "**/*.msi": true,
- "**/*.cab": true,
- "**/*.dll": true,
- "**/*.sys": true,
- "**/*.dat": true,
- "**/*.cmd": true,
- "**/*.com": true,
- "**/*.tmp": true,
- "**/*.bak": true,
- "**/*.dmp": true,
- "**/*.db": true,
- "**/*.mdb": true,
- "**/*.jar": true,
- "**/*.lnk": true,
- "**/*.rdp": true,
- "**/*.tlp": true,
- "**/*.ttf": true,
- "**/*.otf": true,
- "**/*.crdownload": true,
- "**/*.opdownload": true,
- "**/*.download": true,
- "**/*.part": true,
- "**/*.partial": true,
- "**/*.deb": true,
- "**/*.rpm": true,
- "**/*.pkg": true,
- "**/*.run": true,
- "**/*.lock": true,
- "**/*.rc": true,
- "**/*.xcf": true,
- "**/*.xpm": true,
- "**/*.a": true,
- "**/.gnupg": true,
- "**/.bashrc": true,
- "**/.gtkrc": true,
- "**/.bash_history": true,
- "**/.bash_profile": true,
- "**/.profile": true,
- "**/.config": true,
- "**/.ecryptfs": true,
- "**/.local": true,
- "**/.cache": true,
- "**/.Private": true,
- "**/*.iso": true,
- "**/*.bin": true,
- "**/*.img": true,
- "**/*.wim": true,
- "**/*.dmg": true,
- "**/*.epub": true,
- "**/*.mobi": true,
- "**/*.azw": true,
- "**/*.fb2": true,
- "**/*.rtf": true,
- "**/*.gpg": true,
- "**/*.pgp": true,
- "**/*.pem": true,
- "**/*.crt": true,
- "**/*.cer": true,
- "**/*.kbd": true,
- "**/*.kdbx": true,
- "**/.git": true,
- "**/.gitconfig": true,
- "**/.svn": true,
- "**/.hg": true,
- "**/CVS": true,
- "**/.DS_Store": true
- }
- }
- ```
- I switch often between Windows and Linux, and the files above cater to both operating systems. Since I don't use MacOS, I didn't add in any specific OSX file types.
- Feel free to use it as a base and edit however you need.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement