最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

visual studio code - VScode snippets tab completions does not work after (beyond) some column numbers at current line - Stack Ov

programmeradmin3浏览0评论

I am using VScode to write latex. I found that the tab completions (settings below, I make it works for snippets without choosing from suggestions) for snippets I defined won't work after some certain column numbers at a current line. For example, at a certain line, my snippets does not tab complete for column number larger than 136 (choosing it via the suggestions, still works), at other lines, the number will change but there must be one (tried many times)...

A more specific example: On my side, for the line

cdacobccwaevqvrtbqrgqqgregqcdacobccwaevqvrtbqrgqqgregqcdacobccwaevqvrtbqrgqqgregqcdacobccwaevqvrtbqrgqqgregqcdacobccwaevqvrtbqrgqqgregqcdacobccwaevqvrtbqrgqqgregqcdacobccwaevqvrtbqrgqqgre

, the snippets tab completion won't work at or after column number 100.

Note that, if there is a (or a few) spaces before the snippet, it will still work fine, but not when there is none. for example, if I have a snippet sn, then ....abc sn + tab will work but ...abcsn + tab will not work, after 100 columns, but both works before 100 columns.

Here is my settings to use tab completion without choosing it from suggestions:

{
    "latex-workshop.view.pdf.invert": 0.87,
    "editor.fontSize": 13,
    "editor.minimap.enabled": false,
    "editor.wordWrap": "on",
    "editor.tabCompletion": "onlySnippets",
    "editor.suggest.selectionMode": "never",
    "editor.autoClosingQuotes": "never",
    "latex-workshop.latex.autoBuild.run": "onSave",
    "git.confirmSync": false
}

Is there any idea of fix?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论