Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-24465

Infer the highlight definition of .xxx.in files by using the definition defined for .xxx files

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.14.0-beta1
    • Qt Creator 4.12.4
    • Editors
    • None
    • 62e7d7eb4918a1633cb3fb6b15cabaf5a9f297f8 (qt-creator/qt-creator/master)

    Description

      A common CMake convention is to name files that are inputs to configure_file as file.ext.in that configures the output file file.ext

      But when I open a file like foo.h.in Qt Creator tells me that that "A highlight definition was not found for this file." It seems like Qt Creator should be smart enough to use the same highlight definition as if I opened foo.h.

      The workaround right now is to manually go to Options > Environment > MIME Types and add an additional .xxx.in extension in the right place, but this is annoying to have to do every time a new file type is used as a configure_file input.

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-24465
        # Subject Branch Project Status CR V

        Activity

          People

            davschul David Schulz
            nocnokneo Taylor Braun-Jones
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes