[Tex/LaTex] Autocompletion in Texstudio


I am using Texstudio 2.6. I enabled autocompletion of schemabloc package in the Texstudio Options. When I am typing in the document, autocompletion for package commands is not working? Can somebody resolve this one?.

Best Answer

Completion and syntax check is both based on so called cwl files, which contain the definitions of the commands. TXS ships with cwls for some frequently used packages but by far not for all. If there is no cwl for a package yet, TXS tries to create one by extracting the information from the TeX source of the package. By default these commands are marked as not to be used in autocompletion because some packages define commands in lots of variants which then would flood the completer. You can change this behavior by editing schemabloc.cwl. It's located in the settings folder. Short solution: Just delete the S after the command if you want to show it in the completer. If you want to know more, have a look at the description of the cwl format

n.b.: In most cases it is not necessary any more to explicitly enable the packages in the options because TXS tries to automatically load the cwl files when it encounters a usepackage command.

Related Question