Skip to content

Instantly share code, notes, and snippets.

@apmeyer
Last active February 15, 2017 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apmeyer/65bd2f723328ed7f50cdf342499fc59c to your computer and use it in GitHub Desktop.
Save apmeyer/65bd2f723328ed7f50cdf342499fc59c to your computer and use it in GitHub Desktop.
Settings for Visual Studio to hide WordPress core and other files not related to a project
"files.exclude": {
// core directories
"wp-admin/": true,
"wp-includes/": true,
"wp-content/plugins/index.php": true,
// set to true to hide all plugins
"wp-content/plugins/": false,
// add individual plugins to hide here
"wp-content/plugins/advanced-custom-fields-pro": true,
"wp-content/plugins/gravityforms": true,
"wp-content/plugins/query-monitor": true,
"wp-content/plugins/wordpress-seo": true,
"wp-content/plugins/wp-migrate-db-pro": true,
"wp-content/plugins/wp-migrate-db-pro-media-files": true,
"wp-content/themes/index.php": true,
// hides all twenty-something themes
"wp-content/themes/twenty*": true,
// manually add other themes to hide
// "wp-content/themes/name": true,
"wp-content/uploads/": true,
// misc files
"wp-content/db.php": true,
"wp-content/index.php": true,
"wp-content/advanced-cache.php": true,
"wp-content/mysql.sql": true,
// core files at root level
"wp-trackback.php": true,
"wp-signup.php": true,
"wp-settings.php": true,
"wp-mail.php": true,
"wp-login.php": true,
"wp-load.php": true,
"wp-links-opml.php": true,
"wp-cron.php": true,
"wp-config-sample.php": true,
"wp-comments-post.php": true,
"wp-activate.php": true,
"wp-config.php": true,
"wp-blog-header.php": true,
"readme.html": true,
"license.txt": true,
"index.php": true,
"xmlrpc.php": true,
".htaccess": true,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment