Can't find the command to generate TOC when VS Code language is Chinese
See original GitHub issueI can’t use the command to generate the title of the article, I don’t know what happened. . .
But the title in the markdown article is still recognizable, and the latest version of VSCode is used by my generation.

The first two toc commands here are the [Markdown TOC] (https://marketplace.visualstudio.com/items?itemName=AlanWalk.markdown-toc) plugin feature and are the current replacement for my generation.
My family’s User.Settings configuration
{
// Encoding format
"files.encoding": "utf8",
// Automatically guess the encoding format when opening the file
// "files.autoGuessEncoding": true,
// font
"editor.fontFamily": "Inconsolata",
"editor.fontSize": 18,
// Control the fold
"editor.wordWrap": "wordWrapColumn",
// Control terminal
"terminal.integrated.fontSize": 16,
"terminal.integrated.fontFamily": "Inconsolata",
"terminal.integrated.cursorBlinking": true,
// bash terminal using cmder
"terminal.integrated.shell.windows": "D:/Program/cmder/vendor/git-for-windows/bin/bash.exe",
// Override the default file icon
"workbench.iconTheme": "eq-material-theme-icons",
// Load a new empty workspace when the last session was not resumed
"workbench.startupEditor": "newUntitledFile",
// Automatically save the file (delay 1s)
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 1000,
// update
"update.enableWindowsBackgroundUpdates": false,
// Git executable path
"git.path": "D:/Program/cmder/vendor/git-for-windows/bin/git.exe",
// // Allow formatting of the specified file
// "clang-format.executable": "/absolute/path/to/clang-format",
// "gitlens.advanced.messages": {
// "suppressShowKeyBindingsNotice": true
// },
// Prohibit markdown to automatically update the directory (the line number is always flashing and annoying...)
"markdown-toc.updateOnSave": false,
// "markdown-pdf.executablePath": "C://Program Files (x86)//Google//Chrome//Application//chrome.exe",
"git.confirmSync": false,
// markdown toc setting is compatible with github
"markdown.extension.toc.githubCompatibility": true,
// vscode markdown preview font
"markdown.preview.fontFamily": "RTWS YueGothic Trial Regular",
// Avoid the indentation of the markdown directory
"editor.tabSize": 2,
// "editor.detectIndentation": false,
// Do not automatically update the directory when saving
"markdown.extension.toc.updateOnSave": false,
// Configure ESlint and Prettier
"editor.formatOnSave": true,
"eslint.autoFixOnSave": true, // fix the code in eslint format each time it is saved
"prettier.eslintIntegration": true, // Let prettier use eslint's code format for validation
"prettier.semi": false, // remove the semicolon at the end of the code
"prettier.singleQuote": true, // replace single quotes with single quotes
"javascript.format.insertSpaceBeforeFunctionParenthesis": true, // put a space between the function (name) and the following parentheses
"vetur.format.defaultFormatter.html": "js-beautify-html", // formatted. vue html
"vetur.format.defaultFormatter.js": "vscode-typescript", // Let js in vue be formatted in the ts format of the editor
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "force-expand-multiline" // attribute forcing line alignment
}
},
"eslint.validate": [
// Turn on checking for errors in .vue files
"javascript",
"javascriptreact",
{
"language": "html",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
}
],
// Control the display and operation of custom code snippets
"editor.snippetSuggestions": "inline",
"editor.tabCompletion": true,
"explorer.confirmDragAndDrop": false,
"materialTheme.autoApplyIcons": true,
"workbench.colorTheme": "Material Theme High Contrast",
"javascript.updateImportsOnFileMove.enabled": "always",
"explorer.confirmDelete": false
}
I don’t know what happened. Is the new plugin removing this feature?
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Visual Studio Code Display Language (Locale)
Press Ctrl+Shift+P to bring up the Command Palette then start typing "display" to filter and display the Configure Display Language command.
Read more >Table of contents - Overleaf, Online LaTeX Editor
Instead of English in \captionenglish write the name of the language you set in babel. Further reading. For more information see: Creating a...
Read more >change default spaces vscode
Change default source code mount in containers. vscode folder), ... but all the Unity related stuff like Vector3 doesn't get any highlights.
Read more >Configuration - Sphinx documentation
See the documentation on Internationalization for details. language¶. The code for the language the docs are written in. Any text automatically generated by ......
Read more >Create a table of contents in Adobe InDesign
You can load TOC styles from other documents or books to build new tables of contents with the same settings and formatting. (You...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

🎉 是 VS Code 的 bug,他们已经修了。
在 VS Code 1.51.1 上,Command Palette 能同时显示本地化和英文的名称,搜索也正常。
2016 年,VS Code 引入了 https://github.com/microsoft/vscode/issues/4679#issuecomment-214741754
2018 年,那边出了一些问题。
根据
我们的本地化资源文件是正确的。
所以,这个问题应该完全来自 VS Code,而且大概在 2019 年初彻底修正。
棒