Sublime Forum

Implement AI into Sublime Text

#11

That’ true, that’s why I wish I can get it from the official source and not from the community. Plus the updates from the offical source is regular and relevent.

It’s best that Amazon creates a ST plugin rather than ST creates a plugin for CodeWhisperer

From me:

Why I said I’m being pull to Visual Studio Code is not because there are many community extensions than Sublime Text, but many offical sources / companies create their extension there and offer regular update which is relevant to their latest services.

It’s a bit awkward that a free product ( VS Code ) has more features and more convenient than a paid one ( Sublime Text ). In real life, people paid for something that has more value than the free one.

0 Likes

#12

Have you tried the one that i’ve implemented? Open​AI completion. It does exactly what you’re asking for: Open AI assistant built right into ST in a convenient and straightforward way.

1 Like

#13

@bschaaf,

I was actually looking for this recently and had to stumble on this forum thread to find the information.

Is there a reason LSP-copilot isn’t documented on the LSP for Sublime Text ?

0 Likes

#14

Honestly, I won’t expect people who want to use Copilot go to LSP’s document to find it. The expected flow would be people just type “copilot” on Package Control (either website or plugin) and find it.

As for your request, any person can file a PR to LSP’s document. If it gets rejected, you most likely will get a reason. https://github.com/sublimelsp/LSP/tree/main/docs

0 Likes

#15

AI integration in coding environments like Sublime Text is definitely a hot topic these days. A lot of folks are finding themselves torn between the simplicity and speed of Sublime Text and the advanced AI features in editors like Visual Studio Code with GitHub Copilot and Amazon CodeWhisperer. It’s like a tug-of-war between efficiency and cutting-edge tools.

0 Likes

#16

Curious, how do you guys use AI in your editor?

Chatting with it? Like phind or chatgpt?
Autocomplete? Like tabnine?
or autogenerating code? like auto generating unit tests?

Personally, I just use phind if I need artificial intelligence. LSP provides enough auto completion. I guess, I need it for auto generating code

1 Like

#17

I don’t think that we will need to chat with. The AI tools are designed to speed up the processes. Perhaps an AI tool in Sublime will automatically detect some errors, and with the help of its commands, it will significantly speed up certain processes.

0 Likes

#18

Hey

I recently ran into Codeium, which spun up my attention.
But The codeium package is already available for Sublime via Package Control.

I find code completion of Codeium good. However as I have seen the codeium sublime plugin lacks the chat with context-awareness (indexing) feature. It would be really nice to interact with an AI that is context aware, so sees and knows at least the open files (but would be better if the whole project) and can be asked to generate code (eg unit tests) in a comfortable way, on a new panel. In vscode it is like
that.

Moreover I would also be happy if the AI modell (like llama3) would ran locally.

I checked a few packages yesterday.
The free version of tabnine is quite lame compared to Codeium. I did not check LSP copilot, but I as I said I mainly miss the context-aware (local) chat from existing solutions.

I checked Yollama and Open​AI completion but both solution is quite lame - no offense.

I think a satisfying solution would be a side panel for context aware chat. (I don’t insist on having code completion and context aware chat to be served by the same plugin)

Are there any obstacles to the realization of such a panel?

0 Likes

#19

I don’t think there is technical obstacles (https://packagecontrol.io/packages/Terminus is more complicated after all) but it’s just too complicated to deal with UI interaction in ST.

0 Likes

#20

I am starting to become really addicted to cody/sourcegraph for writing code. “cody: write me a function that draws a button”, “cody: comment this function”, “cody: write me a testcase for this.” Though I don’t like the clumsiness of a full IDE like Jetbrains, I increasingly spend my time in Jetbrains even for simpler edits. So from my point of view, I think decent AI support will be critical for ST even in the not-so-long run.

2 Likes

#21

Definitely True. The LLM-coders are too strong.

1 Like

#22

If you add any AI stuff please leave an option to turn it off for us old people xD

3 Likes

#23

Hi guys, what’s the current state of the art in AI for ST? Are there any packages similar to Cursor available?

Never coded in vscode but I saw a video of that package and it seems quite helpful to speed up certain coding tasks.

Thanks

0 Likes

#24

Found an interesting one… https://github.com/pieces-app/plugin_sublime

0 Likes

#25

@bschaaf just a general question… working on AI? yes / no / no-comment :nerd_face: The tools are here to stay. Would be happy to send some thoughts your way or to add some here if you want to.

0 Likes

#26

I just bought Sublime Text 4. And the very reason I bought it is because I hate AI and I am sick of seeing AI integrated into editors. It’s fine for others as a plugin, even though I oppose AI, but I would hate to see any default integration of AI into Sublime.

100% against it.

9 Likes

#27

You’re right. A plugin would make more sense.

0 Likes

#28

I agree it should be a plugin: People who want to use AI for writing code should be allowed to decide which plugin to use.
If they want to stop using AI for coding, they will just uninstall the plugin they installed, rather having code in Sublime Text that is not used.

2 Likes

#29

A plugin for AI is fine, but I do not what to see this integrated in Sublime Text. I don’t want to use AI myself which is why I chose the Sublime Apps.

1 Like

#30

My first maiden post here. But it was flagged as off topic. Second time. I will try to dust myself down and attempt to bring it back “on topic”.

The OP topic is “Implement AI into Sublime Text”.

My submission was - simply - to “Implement AI (optionally) outside Sublime Text - by using a toolchain”.

And the intermediary tool I suggested in a toolchain was Albert in Linux and Alfred in Mac. Can’t remember the Windows alternative.

That is use Albert (in Linux) as the choreographer to link AI and ST.

There was a precedent post some time back on a similar theme.

0 Likes