Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Typescript disable compile on save in vs 2015 ctp 6

I need to know how to disable compile on save for typescript files?

like image 212
Elizabeth Schneider Avatar asked Feb 24 '15 19:02

Elizabeth Schneider


People also ask

How do I disable TypeScript compilation in Visual Studio?

Fortunately, it's easy to disable automatic TypeScript compilation. Just add a “TypeScriptCompileBlocked” element to your project's xproj file and give it a value of “True”. This will prevent Visual Studio from making those pesky extra files.

Does TypeScript compile to JavaScript?

Compiling TypeScript. TypeScript is a typed superset of JavaScript that transpiles to plain JavaScript. It offers classes, modules, and interfaces to help you build robust components.


2 Answers

Typescript compilation is enabled by default. You can do next to disable it:

  1. Select and click 'Unload Project' menu item.
  2. Select unloaded project and click 'Edit .kproj'.
  3. Add new 'PropertyGroup' node to projects root node:
<?xml version="1.0" encoding="utf-8"?>
<Project ...>
...
<PropertyGroup>
<TypeScriptCompileOnSaveEnabled>False</TypeScriptCompileOnSaveEnabled>
</PropertyGroup>
</Project>
like image 99
Vyacheslav Borisov Avatar answered Oct 14 '22 14:10

Vyacheslav Borisov


For loose files (outside of a project)

Tools -> Options

  • Text Editor
    • TypeScript
      • Project

[ ] Automatically compile TypeScript files which are not part of a project

For projects

Right-click the project -> Properties

Select the "TypeScript Build" tab (on the left)

Uncheck "Compile on save" under the "General" heading

like image 32
Ryan Cavanaugh Avatar answered Oct 14 '22 13:10

Ryan Cavanaugh