wdssmq

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

  •  
  •   wdssmq ·
    wdssmq · 7 days ago · 1201 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
       7 days ago
    也许可以在工作区目录里写 .gitignore 排除
    wdssmq
        2
    wdssmq  
    OP
       5 days ago
    @yidinghe 要求是在 VSCode 边栏列表里「不显示」
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   968 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 18:45 · PVG 02:45 · LAX 11:45 · JFK 14:45
    ♥ Do have faith in what you're doing.