After learning how to create my own commands and how to make them available in TeXstudio through a autocomplete list with a .cwl file, I could not do the same with packages files I created with those commands.
The following example is the autocomplete list for my own command named myclock.
A very well summarized explanation is here.
I read the latex-document.cwl, that show us the basics of TeXstudio default autocompletion, as the following figure presents,
and also section 4.14 Description of the cwl format of TeXstudio manual, which gives the whole set of instructions to create own .cwl files, and this FAQ of TeXstudio.
Unfortunately I still could not create a completion list for my own packages.
When I start typing a package name inside \usepackage{ }, or use the combination Ctrl+Space, the list appears with all packages TeXstudio recognizes.
But what should I do to insert myownpackage list in the autocompletion list of packages?
The basic idea I had didn't work.
The following figures show an attempt that clearly is not the desired result. The first line replaces the original setup, which is not desirable.










texhashis a Linux command. I checked this link and learned aboutmktexlsr, but I couldn't understand nor find its syntax. I tried some combinations using DOS (typing commands) and MikTeX console (update/refresh options) but without success. I know MikTeX finds mytexmf, but it doesn't seem to be enough. – FHZ Mar 23 '21 at 22:35