wdssmq

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

  •  
  •   wdssmq ·
    wdssmq · 22h 40m ago · 619 views

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

    {
    	"folders": [
    		{
    			"path": "dir-note",
    			"settings": {
    				"files.exclude": {
    					// 语法上不会报错,但不生效
    					"*.json": true,
    					".vscode": true
    				}
    			}
    		},
    		{
    			"path": "dir-project"
    		},
    	],
    	"settings": {
    		"files.exclude": {
    			// 如果写在这里,怎么让其只对 dir-note 生效
    		}
    	}
    }
    
    
    1 replies    2026-09-12 12:50:54 +08:00
    yidinghe
        1
    yidinghe  
    PRO
       22h 7m ago
    也许可以在工作区目录里写 .gitignore 排除
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3001 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 19ms · UTC 02:58 · PVG 10:58 · LAX 19:58 · JFK 22:58
    ♥ Do have faith in what you're doing.