【问题标题】:Hide or group Typescript files in Visual Studio 2015在 Visual Studio 2015 中隐藏或分组 Typescript 文件
【发布时间】:2017-01-05 00:13:15
【问题描述】:

我正在使用用于 Visual Studio 2015 的科尔多瓦工具从事科尔多瓦项目。 我想隐藏编译打字稿文件时生成的 .js 和 .js.map 文件,或者将生成的文件分组到 .ts 文件下。 现在当我保存一个 ts 文件时,生成的文件保存在同一个文件夹中,很难工作。

【问题讨论】:

  • 如果您使用 Cordova 的默认 Typescript 模板,生成的 js 代码将被注入到同一个文件“appBundle.js”中。你能发一下你的tsconfig.json吗?

标签: javascript cordova typescript visual-studio-2015 visual-studio-cordova


【解决方案1】:

我不确定您所说的“组”是什么意思。但是,如果您想将它们从您的视图中排除 - 在您的用户设置中更改:

{
    "editor.fontSize": 15,
    "files.exclude": {
        "**/.git": true,
        "**/.DS_Store": true,
        "**/*.map": true,
        "**/*.js": true


    },
"files.autoSave": "afterDelay"
}

【讨论】:

  • 我正在使用 Visual Studio 社区 2015。我认为您在谈论 Visual Studio 代码。
猜你喜欢
  • 2016-08-07
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-02-09
  • 2016-11-13
  • 2016-09-25
  • 1970-01-01
  • 2015-10-13
相关资源
最近更新 更多