Specify editor settings

Qt Creator uses the MIME type of the file to determine which mode and editor to use for opening the file. For example, Qt Creator opens .txt files in Edit mode in the text editor.

To configure the text editor behavior for the current project:

  1. Select Projects > Project Settings > Editor.
  2. Deselect Use global settings.
  3. Specify text editor settings for the project.

{Editor settings for a project}

Click Restore Global to revert to the global settings.

See also Configuring Fonts, Change text encoding, Indent text or code, View function tooltips, and Text Editor.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.