visual studio code 中隱藏從 ts 文件生成的 js 文件和 map 文件


typescript 文件編譯產生的 js 和 map 文件不需要手工編輯,打開【文件】【首選項】【工作區設置】,放入以下代碼:

// 將設置放入此文件中以覆蓋默認值和用戶設置。
{
    "files.exclude": {
        // exclude .js and .js.map files, when in a TypeScript project
        "node_modules": true,
        "**/*.js": { "when": "$(basename).ts"},
        "**/*.js.map": true
    }
}

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM