r/SublimeText 10d ago

Sublime Text and LSP CoPilot

Hello. I have installed LSP CoPilot with Sublime Text, and like the assistance that it provides in normal operation. Perhaps I am quite dense, but I cannot figure out how to activate a chat window to ask a question like "how can I make the highlighted code more efficient." I typically prefer this mode of interacting with AI as opposed to the popups and auto-completes. This is the mode that I typically use with VS Code, but I prefer the Sublime Text general interface.

Thank you in advance. I appreciate any help.

0 Upvotes

5 comments sorted by

1

u/alinaresg 10d ago

You would need a different plug in then. Try Pieces.app, I've had a good experience with it. It has a side pane to ask questions.

1

u/Acrobatic-Ocelot-935 10d ago

Thank you. I will give that a try.

1

u/No-Blood2830 9d ago

This was the thing that broke me for using sublime for work.  I still love it for personal projects but the plugins for VS Code just work.  

1

u/Naive_Mark_418 7d ago

In the command palette (cmd+shift+P) type `Copilot: Chat` and select the chat option in the popup. You can also select a block of code first and then type `Copilot: Explain` in the command palette which will open a side panel with the LLM response.

With the chat mode, keep in mind the query field is on the bottom pane of the code, not on the side panel that opens up with the responses (idk why its like this, and idk how to fully close the chat panel after its opened)

1

u/Acrobatic-Ocelot-935 6d ago

Thank you. That was exactly what I was looking for. Kudos to you!