I am having an issue that randomly occurs while citing references.
When I type " \cite{ " in my file a list of references usually pops up and I can select any reference by selecting them, as such:

However when I type " \citet " or " \citep ", this list does not appear most of the time. But the references appear on my PDF file as intended.
Moreover, after I manually type in the cite key and change \cite to \citep or \citet as required they become black and look like this:
Several times I have noticed that \citet and \citep both behave like \cite, however these occurences are random and I can not reproduce them. I am using \bibliographystyle{apalike}.
The editor I use is TeXstudio 2.12.10.
I am wondering if anyone can help me solve this. Many thanks for your help.

\citetcould also suggest that your editor does not recognise the command. If a command is not recognised by your editor it is natural to assume that the editor will not recognise that command as a citation command and will not display the cite-autcomplete list. Note that your editors failure to recognise the command has no bearing on LaTeX's recognising the command (or not recognising the command): Only the error messages in the.logfile after running LaTeX are relevant for that. The behaviour is editor-dependent, so we need to know what editor you use. – moewe Sep 30 '18 at 12:42