wdssmq

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

  •  
  •   wdssmq ·
    wdssmq · 1 day ago · 792 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
       1 day ago
    也许可以在工作区目录里写 .gitignore 排除
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2840 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 09:20 · PVG 17:20 · LAX 02:20 · JFK 05:20
    ♥ Do have faith in what you're doing.