Replies: 1 comment 1 reply
-
https://github.com/James-Yu/LaTeX-Workshop/wiki/Intellisense#commands-starting-with- |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using VSCode with the Latex Workshop extension as my new Latex IDE and I am loving it so far. However, I can't figure out how to add IntelliSense to my personal packages. I have a repository for my University assignments and inside it, I have a
texmf
tree which contains my packages with custom styles and macros. I set theTEXMFLOCAL
variable to point to that directory, so my code compiles and works fine. As an example, here's my texmf tree:Now somewhere else in the repo I have a document:
I don't get IntelliSense for the
\Foo
and\Bar
macros either inmain.tex
orbar.tex
. I read the wiki page about IntelliSense and it looks like the 4th point suits my case. I tried adding my texmf tree to thelatex-workshop.latex.texDirs
option. I first tried using placeholders so it doesn't depend on the actual path on my system:I also tried to use wildcards to get all the subdirectories, and I tried to give it the absolute path too. Nothing worked. I never got IntelliSense for my macros. How can I generate IntelliSense for the macros in my package? Maybe I was wrong about using point 4 and I should implement point 5? Does it mean I need to write a
.cwl
file and parse it withpkgcommand.py
?Maybe we need to update the documentation to give clearer instructions on how to add custom IntelliSense and provide some examples people can learn from.
Beta Was this translation helpful? Give feedback.
All reactions