Advertisement
Guest User

Untitled

a guest
Apr 30th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.91 KB | None | 0 0
  1. ## Sample file exclusion list for Visual Studio Code
  2.  
  3. 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.
  4.  
  5. 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.
  6.  
  7. The JSON list below adds to the default exclusion list, and adds the following:
  8.  
  9. * Zipped and image-based archives
  10. * Common Adobe source files
  11. * Microsoft Office, OpenOffice, and LibreOffice files
  12. * Common images, video, and audio formats
  13. * Executables, packaged binaries and common system files
  14. * Common portable book formats
  15. * Public and private key formats (except ASCII)
  16.  
  17. ```
  18. {
  19. "files.exclude": {
  20. "**/*.zip": true,
  21. "**/*.7z": true,
  22. "**/*.rar": true,
  23. "**/*.tar": true,
  24. "**/*.gz": true,
  25. "**/*.tgz": true,
  26. "**/*.bz2": true,
  27. "**/*.psd": true,
  28. "**/*.psb": true,
  29. "**/*.ai": true,
  30. "**/*.eps": true,
  31. "**/*.indd": true,
  32. "**/*.ps": true,
  33. "**/*.xmp": true,
  34. "**/*.lrcat": true,
  35. "**/*.swf": true,
  36. "**/*.pdf": true,
  37. "**/*.doc": true,
  38. "**/*.docx": true,
  39. "**/*.dot": true,
  40. "**/*.dotx": true,
  41. "**/*.xls": true,
  42. "**/*.xlsx": true,
  43. "**/*.xlt": true,
  44. "**/*.xltx": true,
  45. "**/*.ppt": true,
  46. "**/*.pptx": true,
  47. "**/*.pot": true,
  48. "**/*.potx": true,
  49. "**/*.odt": true,
  50. "**/*.ott": true,
  51. "**/*.odm": true,
  52. "**/*.odf": true,
  53. "**/*.ods": true,
  54. "**/*.ots": true,
  55. "**/*.odg": true,
  56. "**/*.otg": true,
  57. "**/*.odp": true,
  58. "**/*.odb": true,
  59. "**/*.otp": true,
  60. "**/*.key": true,
  61. "**/*.sxw": true,
  62. "**/*.stw": true,
  63. "**/*.sxc": true,
  64. "**/*.stc": true,
  65. "**/*.sxi": true,
  66. "**/*.sti": true,
  67. "**/*.tex": true,
  68. "**/*.png": true,
  69. "**/*.jpg": true,
  70. "**/*.jpeg": true,
  71. "**/*.gif": true,
  72. "**/*.ico": true,
  73. "**/*.bmp": true,
  74. "**/*.tif": true,
  75. "**/*.tiff": true,
  76. "**/*.svg": true,
  77. "**/*.mp4": true,
  78. "**/*.mpg": true,
  79. "**/*.mpeg": true,
  80. "**/*.mkv": true,
  81. "**/*.flv": true,
  82. "**/*.avi": true,
  83. "**/*.mov": true,
  84. "**/*.au": true,
  85. "**/*.aiff": true,
  86. "**/*.flac": true,
  87. "**/*.wav": true,
  88. "**/*.ogg": true,
  89. "**/*.mp3": true,
  90. "**/*.aif": true,
  91. "**/*.mid": true,
  92. "**/*.wma": true,
  93. "**/*.mpa": true,
  94. "**/*.vob": true,
  95. "**/*.exe": true,
  96. "**/*.msi": true,
  97. "**/*.cab": true,
  98. "**/*.dll": true,
  99. "**/*.sys": true,
  100. "**/*.dat": true,
  101. "**/*.cmd": true,
  102. "**/*.com": true,
  103. "**/*.tmp": true,
  104. "**/*.bak": true,
  105. "**/*.dmp": true,
  106. "**/*.db": true,
  107. "**/*.mdb": true,
  108. "**/*.jar": true,
  109. "**/*.lnk": true,
  110. "**/*.rdp": true,
  111. "**/*.tlp": true,
  112. "**/*.ttf": true,
  113. "**/*.otf": true,
  114. "**/*.crdownload": true,
  115. "**/*.opdownload": true,
  116. "**/*.download": true,
  117. "**/*.part": true,
  118. "**/*.partial": true,
  119. "**/*.deb": true,
  120. "**/*.rpm": true,
  121. "**/*.pkg": true,
  122. "**/*.run": true,
  123. "**/*.lock": true,
  124. "**/*.rc": true,
  125. "**/*.xcf": true,
  126. "**/*.xpm": true,
  127. "**/*.a": true,
  128. "**/.gnupg": true,
  129. "**/.bashrc": true,
  130. "**/.gtkrc": true,
  131. "**/.bash_history": true,
  132. "**/.bash_profile": true,
  133. "**/.profile": true,
  134. "**/.config": true,
  135. "**/.ecryptfs": true,
  136. "**/.local": true,
  137. "**/.cache": true,
  138. "**/.Private": true,
  139. "**/*.iso": true,
  140. "**/*.bin": true,
  141. "**/*.img": true,
  142. "**/*.wim": true,
  143. "**/*.dmg": true,
  144. "**/*.epub": true,
  145. "**/*.mobi": true,
  146. "**/*.azw": true,
  147. "**/*.fb2": true,
  148. "**/*.rtf": true,
  149. "**/*.gpg": true,
  150. "**/*.pgp": true,
  151. "**/*.pem": true,
  152. "**/*.crt": true,
  153. "**/*.cer": true,
  154. "**/*.kbd": true,
  155. "**/*.kdbx": true,
  156. "**/.git": true,
  157. "**/.gitconfig": true,
  158. "**/.svn": true,
  159. "**/.hg": true,
  160. "**/CVS": true,
  161. "**/.DS_Store": true
  162. }
  163. }
  164. ```
  165. 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.
  166.  
  167. Feel free to use it as a base and edit however you need.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement