Home  >  Article  >  Development Tools  >  How to configure Egret engine shortcut keys in phpstorm to compile TypeScript

How to configure Egret engine shortcut keys in phpstorm to compile TypeScript

藏色散人
藏色散人forward
2021-04-27 11:30:091791browse

The following tutorial column will introduce to you how to configure the Egret engine shortcut keys to compile TypeScript in webstorm/phpstorm. I hope it will be helpful to friends in need! webstorm/phpstorm Configure Egret engine shortcut keys to compile TypeScript

Find the preferences menu to open the configuration for this project. Look at the picture below to find the file watchers function.

Click the plus sign in the lower left corner of the right

How to configure Egret engine shortcut keys in phpstorm to compile TypeScriptIf there is type script in the drop-down, select it, if not, select custom

Check the key settings A few points in the picture

1. Give yourself a name you like

How to configure Egret engine shortcut keys in phpstorm to compile TypeScript2. Find and select

TypeScript

(flip up and down) , not easy to find)

3. Choose the same option as in the screenshot, or choose an option you can understand. Here is where the ts file to be listened to is located. The options in the picture represent the ts in the entire project. File4. I installed the location of the egret command here. It’s up to you. It’s useless to fill in the global variables. You must fill in the path. (If you can’t find it, try searching the whole disk)

5. Fixed fill

6. What is the root directory of the Egret project?

$ProjectFileDir$/game

Because I I created a game folder under the phpstorm project to hold the Egret project, so I added

/game

7. Automatic execution (automatically executed after phpstorm loses focus), I don’t like it. This, so uncheck it and press command s or ctrl s to compile manually. 8. Execute even if there are syntax errors.

The above is the detailed content of How to configure Egret engine shortcut keys in phpstorm to compile TypeScript. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete