wdssmq

[VSCode] 多根工作区怎么对单独的文件夹设置排除?

  •  
  •   wdssmq ·
    wdssmq · 2 days ago · 1014 views

    并不想在 dir-note 内设置排除

    {
    	"folders": [
    		{
    			"path": "dir-note",
    			"settings": {
    				"files.exclude": {
    					// 语法上不会报错,但不生效
    					"*.json": true,
    					".vscode": true
    				}
    			}
    		},
    		{
    			"path": "dir-project"
    		},
    	],
    	"settings": {
    		"files.exclude": {
    			// 如果写在这里,怎么让其只对 dir-note 生效
    		}
    	}
    }
    
    
    2 replies    2026-09-14 11:37:41 +08:00
    yidinghe
        1
    yidinghe  
    PRO
       2 days ago
    也许可以在工作区目录里写 .gitignore 排除
    wdssmq
        2
    wdssmq  
    OP
       2h 14m ago
    @yidinghe 要求是在 VSCode 边栏列表里「不显示」
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5516 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 05:52 · PVG 13:52 · LAX 22:52 · JFK 01:52
    ♥ Do have faith in what you're doing.