12

According to the official document, https://code.visualstudio.com/docs/languages/markdown

Snippets for Markdown

There are several built-in Markdown snippets included in VS Code - press Ctrl+Space (Trigger Suggest) and you get a context specific list of suggestions.

Does there any way, trigger snippet automatically when I type word, because it's troublesome, press Ctrl+Space

2
  • Is there some reason you don't want to override Trigger Suggest with your own keybinding? Commented May 6, 2017 at 9:49
  • This is final alternative,because I'm used to keep default short cut. If there is no auto trigger option, I will do that. Commented May 7, 2017 at 15:26

2 Answers 2

27

Try setting:

"[markdown]": {
  "editor.quickSuggestions": {
    "other": true,
    "comments": false,
    "strings": true
  },
},

This enables IntelliSense automatically when you start typing. By default, this will show snippets and word based suggestions (suggestions based on words in the current document). To disable word based suggestions, set:

"[markdown]": {
    "editor.quickSuggestions": true,
    "editor.wordBasedSuggestions": false
}

You can also set:

"editor.snippetSuggestions": "top"

If you always want snippets to show before word base suggestions

Sign up to request clarification or add additional context in comments.

1 Comment

Additionally I've found that installing and enabling the yzhang.markdown-all-in-one also enables search of some snippet prefixes (e.g. //1, //2) that would otherwise not appear.
1

There is an inconsistency in VS Code and it is a known issue. Markdown snippets do not get auto-completion. Probably it will be fixed in next release.

Yes this is an inconsistency. Full extensions get auto (7x24) completion by default (e.g. latex, cake), some built-in extensions like Markdown do not.

https://github.com/Microsoft/vscode/issues/1617#issuecomment-166999086

1 Comment

This is the designed behavior, not an issue

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.