Qt Creator Search inside code searches whole words only - qt

Sometime ago, I remember I made advanced search and checked the Whole words only checkbox found beneath search box .. finished the search and unchecked the search filter.
Before that, I was always able to search inside code by highlighting arbitrary text and doing simple search (not advanced search) .. and the search always worked.
But now .. this simple search does not work .. the search only works when I highlight a Whole word, even though I am not doing advanced search nor any of the advanced search filter is checked ..
I want to know how to remove search filter for simple, inside code, search ...

Well, strange did not to think about it!
The simple search also has a filter list .. I just never noticed!
There is a search icon and a filter drop down inside the simple search box .. !

"Whole word" is not working as I expect. Searching for "XYZ" (Whole word) matches "XYZ_ABC", which is not a "Whole word" match.
Yeah yeah I know... switch from Qt 5 to Qt 6. Well that's not an option right now.

Related

How to enable mark occurrences feature for the OpenEdge editor

I've been missing this feature since starting to work with OpenEdge, and I am left wondering if the is any way to enable this.
I've checked the OpenEdge editor properties in Eclipse but was unable to find the option to toggle this. Is there a plugin that can enable it? Maybe a hidden way to do that without the need of a plugin? Any help is appreciated.
Mark occurrences feature example
If you search using Ctrl+H (or Search -> Search) in the OpenEdge Editor (Eclipse based) you get marked occurences in the editor as well as a list of all search hits in the Search tab.
In this example I've searched for "RETURNS CHARACTER"
In the old AppBuilder editor you are out of luck.

Is there an Atom/Brackets extension for creating small custom snippets accessible from the context menu?

I would like to know if there is an extension (preferably Atom or Brackets) for creating small custom snippets accessible from the context menu, which also includes a "selected text" variable.
I'll explain. For example, I could create a snippet named list-item like this:
<li>%selection%</li>
and then select the word "hello" in the editor, right click and apply the list-item snippet, in order to print:
<li>hello</li>
I tried to search the repositories, but there are a lot of extensions and I couldn't find what I'm looking for.
It was a feature natively present on Smultron editor many years ago, now it would be very useful to me.
Thanks in advance

How do I dismiss an autocomplete suggestion in Atom?

When I'm writing Docstrings in Python3, I'm ending all of my sentences with periods and I see an autocomplete suggestion like this:
In this case it wants to replace the string "wager." with "wagerself."
If I press Enter or Tab the string replaces. I've messed around with all the logical buttons (Including adding an extra space which doesn't work), and nothing will allow me on my merry way to a newline.
This problem occurs both with and without the autocomplete-python package installed.
I do want to use auto-complete when I type a dot after an object, just not in the comments.
Is there a way to either:
Dismiss the autocomplete suggestion as they come up.
-- or --
Change the autocomplete to be aware of the context, i.e. not autocomplete dots when I'm in a string/comment.
From experimenting with different key combos, ctrl + enter will ignore the suggestion and allow you to go to the next line without altering what you've typed.
I haven't found any documentation around this, so I'm not sure if there's a similar key combo for tab or not. I couldn't find anything myself beyond alt + tabing to lose focus, which causes the suggestion to go away, then alt + tabing back to hit tab, which obviously isn't ideal.
I'm using Atom 1.44.0 on Windows and have found that shift + enter works to dismiss an autocomplete suggestion. No luck with tab on this platform though.
I use atom extensively, and have found that a quick left-right cursor move will leave the typed text in place and will NOT reactivate the suggestion list, unless more characters are typed. You can then type and move on to the next line.
I was actually searching myself for a way to exclude "then" from the autocomplete action, because I have text in other locations that has it as a commented "Then". I was hoping to find a way to exclude that word completely, but thought to share my work-around for that little bit, instead.
I am having the same problem where my text is getting replaced with cached words where if I wanted to type “manage” but if I have used “management “ before, I will get the text what I don’t want if I press enter. I went into preferences and followed the same steps mentioned in the below article and once the preferences are changed, I don’t see the word suggestions anymore. I felt so relieved.
https://elearning.wsldp.com/pcmagazine/disable-code-hints-atom-editor/

Turn off whole word search on Atom

I'm trying to search within a word on Atom and can't work out how to do it! I searched online and it seems the whole word feature was added recently - is there a way of turning it off?
I don't know regex but if there's some kind of solution using that that would be fine!
Thanks!
In the find panel, there are a few icons on the right side. They are as follows (at least, as of today in v1.16), from left to right:
Regex (regular expression matching)
Case sensitive search
Search only within current selection
Match whole words
You can click any of them to toggle their state on/off.

How do you actually find what you want from offline QT documentation?

I wanted to go through QtQuick/QML Button API, which I found here online.
But I can't find it from the offline documentation available in QTCreator. The offline search gives me less relevant results.
Any tips for searching...? Thanks!
One trick I use is this:
Type the item (e.g. "Button") into the code editor
Hover my mouse cursor over the item
Press F1
That will open the documentation for the Button QML type. Works in C++ too.
Google has much more powerful search engine comparing to offline documentation browser. So you just didn't find matching article in help browser search. You can:
Find "Button" instead of "button" in help browser search results
Place cursor on interesting identifier in code and press F1 to show help
Select appropriate documentation in "Contents" mode of help browser left panel

Resources