How do I set the default encoding of the source file in qt creator?

There is no enter image description heredefault encoding option in my qt creator . Therefore, each new file created inherits from the system encoding, which is gbk (cp936) in the window box. But I want to set the default file encoding of the source files to utf-8. How?

Thank.

+3


source to share


1 answer


I found this option in the text editor's plate. enter image description here



Note: after changing the encoding to "UTF-8", it may display "System" if your system encoding is UTF-8. Qt's creator documentation says: "The default encoding field still displays the value System if the system default encoding is set to UTF-8."

+7


source







All Articles