Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Visual Studio qml syntax higlighting
QtWS25 Last Chance

Visual Studio qml syntax higlighting

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 4 Posters 6.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • OllieO Offline
    OllieO Offline
    Ollie
    wrote on last edited by
    #1

    QML files in visual studio (2015 community edition) are not syntax highlighted / colorized. Is there any way of making this happen?
    I've got the QT Add on working and can build and run my QT Quick app for Visual Studio no problems.

    Cheers

    1 Reply Last reply
    1
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      See this: http://blog.qt.io/blog/2013/04/11/visual-studio-add-in-1-2-1-for-qt-5-released/

      Apparently QML syntax highlighting is a commercial feature of the plugin. Maybe use Qt Creator instead? It's a great IDE and can compile using MSVC as well.

      (Z(:^

      OllieO 1 Reply Last reply
      1
      • sierdzioS sierdzio

        See this: http://blog.qt.io/blog/2013/04/11/visual-studio-add-in-1-2-1-for-qt-5-released/

        Apparently QML syntax highlighting is a commercial feature of the plugin. Maybe use Qt Creator instead? It's a great IDE and can compile using MSVC as well.

        OllieO Offline
        OllieO Offline
        Ollie
        wrote on last edited by
        #3

        @sierdzio
        Thanks for that.

        I'm doing a lot of straight OpenGL with a qt quick front end. I'm semi-literate with visual studio and though I'd stick with it for the C++. It's a nice IDE. I can edit the QML files using creator though.

        O.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          It's your call.

          Keep in mind though, that the blog I linked is from 3 years ago - maybe QML highlighting was added to add-in in the meantime - I don't use it so I don't follow the news. As far as I recall last news, somebody said Microsoft has changed the interface for add-ins and the team was busy rewriting and adapting to it.

          (Z(:^

          1 Reply Last reply
          0
          • B Offline
            B Offline
            bvanderlaan
            wrote on last edited by
            #5

            I'd just wanted to confirm that Microsoft did changed the interface. The Qt Addon 1.2.5 is not compatible with Visual Studio 2015.

            Now you need to install the Qt5Package extension.

            In Visual Studio go to Tools -> Extensions and Updates... then search online for Qt5Package and install it.

            Works the same as the old Add on.

            There is also a Visual Studio Test Explorer extension for QTest called Qt Test Adapter Extension which will allow Visual Studio to find your QTests and show and run them in the Test Explorer.

            However I found this thread because I'm also not getting any syntax highlighting in QML :cry:

            Until next time think imaginatively and design creatively.

            1 Reply Last reply
            0
            • MikhailGM Offline
              MikhailGM Offline
              MikhailG
              wrote on last edited by
              #6

              Highlighting has implemented but code completion has not yet.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved