cursor.cpp.disabledLanguages does not work in new unsaved files

Repro:

  1. Add "cursor.cpp.disabledLanguages": ["markdown", "plaintext"] to User Settings JSON
  2. Open new file but do not save it
  3. Ensure language mode is Markdown or Plaintext
  4. Cursor autocomplete suggestions still appear
  5. Changing language mode does not make suggestions disappear
  6. Suggestions only disappear after file is saved

Hey, try adding the parameter “untitled” to the array.

1 Like

Hey guys, the “untitled” addition to the array isn’t solving this for me. A new (unsaved) file is not untracked, despite the settings mentioned above.

Are there any other actions that need to be taken in tandem with the “untitled” fix?

version 0.48.8

1 Like

Same here. Using version 0.48.8.

Hey, I don’t think anything else is needed. You can also try adding to the “plaintext” array.

For me the confusion seem to be that I expect the same behavior for new files and the ones on .cursorignore for the cmd+k feature.

I do see Cursor Tab stroke out as you shared (thanks, this was useful), so that’s good news.

No way to disable cmd+k for newly created, unsaved files?

Also, from what the docs state, this would be the expected behavior, right?