Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator Occurrences Text Highlight not working for non cpp files
Forum Updated to NodeBB v4.3 + New Features

Qt Creator Occurrences Text Highlight not working for non cpp files

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
2 Posts 2 Posters 390 Views 1 Watching
  • 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.
  • N Offline
    N Offline
    natxo14
    wrote on last edited by
    #1

    Hi all,
    I have just installed Qt Creator 4.14.2 on my Linux Mint 20.1 Ulyssa 64-bit machine.
    I've cloned a project with lots of different files : .cpp, .txt, .py, .json ...

    When editing a cpp file then the 'occurrences' are correctly highlighted. By 'occurrences' I mean the 'occurrences of the symbol under the cursor'. Ex : if cursor is under variable myRobot then all the occurrences of that variable are highlighted on the text. Great feature, everything's fine.

    BUT when working with another type of files (Ex CMakeList.txt or any python or json file), then the functionality does not work and I have to simulate it with 'Ctrl+F' each time I click on something I'd like to be highlighted everywhere.

    I've been searching in Tools->Options->Text Editor 'Fonts and Colors' and 'Generic Highlighter' tabs, but couldn't find where the cpp files are told to be treated differently from other file types.

    Any ideas on this??
    Thanks a lot!!

    kshegunovK 1 Reply Last reply
    0
    • N natxo14

      Hi all,
      I have just installed Qt Creator 4.14.2 on my Linux Mint 20.1 Ulyssa 64-bit machine.
      I've cloned a project with lots of different files : .cpp, .txt, .py, .json ...

      When editing a cpp file then the 'occurrences' are correctly highlighted. By 'occurrences' I mean the 'occurrences of the symbol under the cursor'. Ex : if cursor is under variable myRobot then all the occurrences of that variable are highlighted on the text. Great feature, everything's fine.

      BUT when working with another type of files (Ex CMakeList.txt or any python or json file), then the functionality does not work and I have to simulate it with 'Ctrl+F' each time I click on something I'd like to be highlighted everywhere.

      I've been searching in Tools->Options->Text Editor 'Fonts and Colors' and 'Generic Highlighter' tabs, but couldn't find where the cpp files are told to be treated differently from other file types.

      Any ideas on this??
      Thanks a lot!!

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      @natxo14 said in Qt Creator Occurrences Text Highlight not working for non cpp files:

      I've been searching in Tools->Options->Text Editor 'Fonts and Colors' and 'Generic Highlighter' tabs, but couldn't find where the cpp files are told to be treated differently from other file types.

      They're not, there's a code analyzer only for c++ (and a partial support for qmake autocompletion).

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      1

      • Login

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