When you use your UE recently, you need to open the. ec file frequently, and. ec files refer to the syntax for C/s + +, and each time you open it, you need to click "View->c/c++" on the toolbar. Feel very cumbersome, so I want to find out the settings, let UE open. ec file, the default use of C + + syntax highlighting.
In the high-level configuration-----editor display, syntax highlighting, language selection, select C + +, click Open, open a file in the UE c_cplusplus.new, after the first line of the file "file Extensions", add an EC
"File Extensions = C CPP CC CXX H HPP EC"
Save the file
Back to advanced--configuration----editor display--syntax highlighting, select ' C + + ' in the font style, apply, OK.
Each time you open the. ec file with your UE, the default is to highlight it using C + + syntax.
So, if you use UE, you want to let the open file extension type a use the syntax highlighting of a language, edit the configuration file of the language A, add the extension of the file extension type A, and then select Language A in the font style.
This article from "Love Growth, Love life" blog, declined reproduced!
UE settings Default highlighting language for open files