Disabling AI autocomplete in Markdown/MDX files #59727
joshwcomeau
started this conversation in
Feature Requests
Replies: 1 comment
-
|
Wanted to share a possible solution, for anyone else running into this: edit predictions can be disabled for specific globs. /* settings.json */
{
"edit_predictions": {
"provider": "zed",
"mode": "eager",
"disabled_globs": ["**.mdx"],
},
}Seems to work for me, after a couple minutes of testing! Thanks to Louis Bourque for the suggestion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What are you proposing?
I use Zed to edit blog posts in
.mdxfiles, and for writing content, the AI autocompletion is unhelpful. It doesn't usually know what I’m about to say, and the automatic suggestions pull me out of flow. Also, the suggestion is frequently overlaid on top of the cursor, which makes it impossible to see what I'm writing:When I add the
disable_aioption insettings.json, the experience improves dramatically, but I do want tab autocompletion in my actual code files. I tried adding this option to the specific language in question, but the option is unrecognized:As you can see, I also tried to disable autocompletions using
inlay_hintsandshow_completions_on_input, but they had no effect. I'm guessing I’ve misunderstood what these settings do?Why does this matter?
I really appreciate the ability to disable AI features, but I suspect there are lots of people like me who want AI autocompletions for code, but not for content. I can also imagine other use cases for language-specific toggles (eg. someone learning Ruby might want to write the code themselves for practice, but use AI autocompletion for the languages they're more comfortable with).
Possible approach
I think that the
disable_aisetting should be allowed in the language-specific config.Alternatively, if the existing
show_completions_on_inputsetting could disable edit predictions, that would also work great.Thanks for all of your work on this editor! I’ve been really enjoying using it so far. 😄
Beta Was this translation helpful? Give feedback.
All reactions