文件->首选项->用户设置,搜ruler后点击edit in settings.json
添加files.exclude节点到settings.json文件中,**/代表所有 , *.txt代表所有后缀为.txt的文件
"files.exclude": { "**/.git": true, "**/.svn": true, "**/.hg": true, "**/CVS": true, "**/.DS_Store": true, "**/testcases/**/*.txt":true, "**/foldername":true }