The MDC editor is whack. Please revert it or just generate a template

Hey, i use a workflow that involves actually getting cursor to write my own rules. This is all well and good but the MDC editor just breaks everything. It has problems saving and then sticking, i will stage the change in GIT and then it undoes it. There are constant conflicts and overwriting problems. Its honestly a nightmare.

I suggest it would be better to just use a plain text file that gets generated in the project rules UI which has the required header and globs in there in that format. I know hand holding to get the format right will prevent lots of tickets in theory but if I could please just have it be a text field or optionally turn it on or off that would be great.

Using cursor to manage my rules and then checking the changes in git is my preferred workflow.

Is there some way to switch it off in the meantime?

2 Likes

What you described is a MDC file. text file that gets generated in the project rules UI which has the required header and globs in there in that format. the difference is that it has a header

---
name: Test
description: when to use that rule
glob:
---

Details of the rule

Can you describe or show what happens with the file? Others keep mdc in git.

@T1000, the issue is also discussed here.

I’ve attached my workflow, some logs, and a workaround to the issue.

Looking into making this work great with composer. As a workaround, you can right click it in the file exploerer and do “Open With > Text Editor” or right click the tab and do “Reopen editor with”

1 Like

You can configure the default editor to be text editor and never see the mdc editor again

2 Likes

Correct! Thanks for the tip, @msfeldstein. I updated my user settings with these changes, and now it works perfectly.

...
  "workbench.editorAssociations": {
    "*.mdc": "default"
  },
  "files.associations": {
    "*.mdc": "markdown"
  }
1 Like