Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use xcode to edit typescript files?

I've setup and installed npm, node, and verified they are both there. I've also worked through the Angular 2 quickstart guide and have compiled and ran the demo app successfully in my mac environment. However, I can't use Xcode to edit the .ts files.. Xcode is associating the files to quicktime player and refuses to open in the Xcode editor.

MacOS Sierra (vr. 10.12) Xcode vr. 8.2.1 NPM vr. 4.0.5 node vr. 7.4.0

Am I missing something?

What I see in Xcode

like image 248
Mr. S Avatar asked Jan 10 '17 21:01

Mr. S


People also ask

How do I run a TS file from the command line?

We can use the ts-node package to execute TypeScript files from the command line. Install it with npm or other package manager. After that, simply execute the TypeScript files with the command: ts-node filename.

What is Xcode editor?

Xcode is a code editor where you write your iOS programs and run them. In this chapter, you are going to learn how to install Xcode, create a program file, and run the program. Because this is a beginner-level Swift programming course, we are not going to build an actual app yet.


1 Answers

If you dont't want to install any xclangspec file, then you can change type to other in Identoty and Type inspector (on right side of window). I changed to javascript and looks great! But the best solution is the xclangspec of course if exists...

like image 65
feca Avatar answered Oct 16 '22 23:10

feca