is there an issue I could follow for JBAI in fleet...
# fleet
z
is there an issue I could follow for JBAI in fleet only generating code at the user's cursor rather than in the correct place?
z
Sorta, that’s completions whereas I’m referring to using the command+. prompt shortcut
p
@Zac Sweers got it now, thanks! Right now Generate code is always tied to the line where it was invoked. Seems like a standard behavior in all AI editors. Can you please tell a bit more about your use case?
z
If I do it in IntelliJ, it will generate into the correct place. For example - if I have my cursor in a function name, it will generate code into the function body. However in Fleet it will generate code only exactly where the cursor is, which results in generating invalid code. Worse it will also generate imports inline, rather than add them to the top of the file
p
You’re right! Checked the latest IJ and see it now. Here’s a feature request to follow: https://youtrack.jetbrains.com/issue/FL-33415/Support-for-any-edit-location-via-AI-Generate-Code
👍 1