TeXStudio doesn't recognize some commands
TeXStudio recognises commands that it finds in files ending with .cwl
. The \eqref
command and the align*
environment come from the amsmath package
, so you need to make sure that amsmath.cwl
is loaded. Under some circumstances, this will happen automatically, but the mechanism isn't foolproof (e.g. it doesn't know that amsmath
can be loaded indirectly via \usepackage{mathtools}
).
On a Mac, you can ensure that amsmath.cwl
is loaded by going to
TeXStudio --> Preferences
selecting Completion
on the left and checking the box next to amsmath.cwl
. Presumably the procedure is similar on other operating systems. If the other unrecognised commands also come from packages for which TeXStudio has cwl
files, activate these as well. Section 1.4 of the TeXStudio manual explains how to add your own cwl
file for commands that do not come from standard packages.