Inline AI editor (cmd+k) not using cursor commands

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I have a command prompt /explain.md. Which instructs the (cmd+k) inline AI editor to prefix and suffix the explanation in language specific comments with the words “filler” and to limit the explanation to 100 words. Neither is executed. Note that the command works as expected in the main chat panel.

Steps to Reproduce

  1. create a custom command. (e.g. /explain)
  2. highlight the code to be explained
  3. use the command in the in-line editor (e.g. /explain)

Expected Behavior

the inline AI editor is meant to comment in the lang using the /explain command prompt.

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.7.44 (Universal)
VSCode Version: 1.99.3
Commit: 9d178a4■■■89981b62546448bb32920a8219a5d0
Date: 2025-10-10T15:43:37.500Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

For AI issues: which model did you use?

Auto

Does this stop you from using Cursor

No - Cursor works, but with this issue

1 Like

Hey, thanks for the report. This is a known limitation with custom commands in the inline editor (cmd+k) - they don’t currently work the same way as they do in the main chat panel. The inline editor has its own prompt system that doesn’t integrate with custom .cursorrules commands yet.

For now, you’ll need to use your /explain command in the main chat panel to get the full functionality with the prefix/suffix comments and word limits. You can still highlight code and reference it in chat, which should give you the same result.

The team is aware of this gap between the inline editor and chat functionality, so hopefully this gets improved in future updates. Check out the docs on custom commands here: Rules | Cursor Docs for more details on how they work in chat.

Thanks for fast response, much appreciated @deanrie. Have a nice day.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.