Vscode: The snippets for markdown is not valid.

Created on 15 May 2016  路  12Comments  路  Source: microsoft/vscode

  • VSCode Version : 1.1.0
  • OS Version : Deepin 15.1.1

I can't use snippets with markdown.

markdown

Most helpful comment

@alexandrudima Thanks for your reply. in the system whit Chinese language ,the ctrl+space usually switch the English and Chinese input by default. In the last win10 ,I even can't change the short key.SO I define a vs code setting file.it works.

All 12 comments

I have the same problem, same version, but OS is win10 x64 14342 insider

@AlanWalk @startewho Can you please give me more details?

98ohzmz4yr

Do you have this problem when launching VSCode with code --disable-extensions ?

Hi, The problem remains with code --disable-extensions. @alexandrudima

  • I type bold, no any tip display to.
  • I add a snippet to User Snippets, and I type it, no any tip.

gif

Ok, figured it out, markdown was the only mode that completely disables auto-suggest. After discussion with @bpasero we've reached the conclusion that this is not good and markdown should behave like all the rest of the modes.

@alexandrudima @bpasero

Markdown should not behave like all the rest of the modes because it is a lyrical mode. People that write Markdown write in their own language, English for example, and when they press the Enter they want a line break. Automatic suggestions specifically clash with this: I now can't write link as part of a sentence and press Enter to go to a new line, without having to press Escape. Note that since all the words in the document appear as suggestions, as soon as the document has a considerable size, many words will have this problem...

We can discuss with the team, I have no strong feelings about this, I can revert my change... in fact I don't even know why I touched this to begin with...

I have pushed a revert to my change for May, I now give the issue to its proper owner :).

So many editor can write markdown by snippet. why the VS code do the strange behavior ? And the vs code even supply a markdown snippet file. It would be useful and common by adding the snippet function

@startewho snippets work in markdown and they have always worked. They simply do not show up automatically. They are one ctrl+space away.

@alexandrudima Thanks for your reply. in the system whit Chinese language ,the ctrl+space usually switch the English and Chinese input by default. In the last win10 ,I even can't change the short key.SO I define a vs code setting file.it works.

It's conflict with chinese input, and no any tips. I think a simple Q&A page is useful for users.

I am closing this because markdown is now a real extension like any other language.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

trstringer picture trstringer  路  3Comments

omidgolparvar picture omidgolparvar  路  3Comments

mrkiley picture mrkiley  路  3Comments

sirius1024 picture sirius1024  路  3Comments

philipgiuliani picture philipgiuliani  路  3Comments