James-Yu / LaTeX-Workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.
MIT License
10.73k stars 535 forks source link

Synctex Keybinding/Keymapping #712

Closed tabedzki closed 6 years ago

tabedzki commented 6 years ago

Hi James,

First off, this is a fantastic extension for VS Code and because of this I am using VS Code as my primary LaTeX editor. One request that I would like to a way to bind other LaTeX commands (and if that is a feature natively for it to mentioned in a more prominent place); the main thing I would like to bind is the synctex command from the editor side so that way I can easily see where the text is in the pdf without using the mouse or the context menu, although I can see being able to bind all LaTeX commands as a useful feature.

Thank you in advance.

James-Yu commented 6 years ago

It is possible through the default vscode key binding. All latex-workshop commands are available for binding.

tabedzki commented 6 years ago

Where can that be done? I went to the keybindings.json and used autocomplete to suggest all the possible options for the "command" option and nothing resembling latex-workshop showed up as an option.

Is there documentation containing all the different commands that latex-workshop has?

jlelong commented 6 years ago

Open a latex file to make sure the extension is fully loaded. Then, go to the Keyboard Shortcuts menu and search for latex-workshop.

tabedzki commented 6 years ago

Ahhh that helped. I also noticed that I had to first disable the Vim extension before getting it to work. Sorry about that. I am curious as to why Vim prevents the latex-workshop commands from loading but not from executing. I was able to run the stuff even though I re-enabled the vim command with the new hotkey set.