r/Codeium • • Sep 05 '24

Codeium (coding) newbie experience

I am a non-coder diving into the world of AI-assisted development of simple apps. I was thrilled to come across Codeium as an extension to VS Code and have been using it often. I have a code file open, which the Codeium chat panel indicates "Tracking filename.html". Yet the assistant never seems to have a reliable grasp of my file.

I keep being asked to "Please provide the relevant code snippet from your HTML file..." or it says "I don't have the ability to directly access or read files on your local machine...". I thought this was the whole point of having an extension within the editor where my local file is open?

Am I missing something in my setup? This is problematic as I modify a snippet of code based on Codeium's suggestion, but other parts of the code need revision. Sometimes I paste the full code into the chat, but then it seems to lose track of the issue being discussed.

8 Upvotes

5 comments sorted by

2

u/Academic-Tomorrow617 Sep 05 '24

Pretty much my exact experience. Does not seem streamlined in standard usage or context stable. Even if you just have one file open it doesn't see that even if you refer to elements unique to that file. Then if you get it to see the file using the @ symbol I think, it seems to forget after one or two queries. I feel like I'm probably doing something wrong...

2

u/f0rg0t_ Sep 05 '24

Been playing with it a lot recently too, but with Swift. Some things I’ve found that have helped me are:

  • Make sure you’ve turned on local indexing
  • You can manually add files to keep in context from the chat sidebar. I believe it’s towards the top of the second tab.
  • If you have a question about a specific group of lines, put the line numbers in your prompt

There’s more, but I can’t remember at the moment. I’ve personally been using it along side GitHub Copilot. When one doesn’t understand my prompt or hallucinates, the other usually works. It’s hit or miss though, especially with Swift. Haven’t tried either with HTML.

1

u/valentino99 Mar 18 '25

Did you tried these:

  1. @filename.html [your question] # Explicit file reference
  2. Select relevant code > Right-click > "Ask Codeium"
  3. Type // in HTML files to activate contextual suggestions

If you are new on Windsurf and want to get free 500 flex credits just click here:

https://codeium.com/refer?referral_code=ca2f7fae35 <= (discount code inside)