Skip to content

VScode

visual Studio Code

snippets#

documentation: https://code.visualstudio.com/docs/editor/userdefinedsnippets Character { doesn't need to escape. :question::question::question:how to insert at the beginning of the file for import?

DOC#

  • Snippet Syntax: https://code.visualstudio.com/docs/editor/userdefinedsnippets same as TextMate

Hotkey#

用户按住「Alt + Shift + I」键),既可在每一行的末尾都创建一个光标。 ActionID: editor.action.insertCursorAtEndOfEachLineSelected Ctrl+Shift+N will open a new window, while Ctrl+K then releases the keys, and pressing O would open the current tab in a new window. You can then use menu File → Open Folder to have two instances of Visual Studio Code with different folders in each window.

⌘+Shift+N and ⌘+K for Mac. source

extension 插件#

  • FROM: https://juejin.im/post/5cb87c6e6fb9a068a03af93a#heading-81 GitLens Chinese (Simplified) Language Pack for Visual Studio Code

Latex Workshop#

Formatter Fix

1
2
3
4
5
6
sudo tlmgr option repository ctan
sudo tlmgr update --self
sudo tlmgr install latexindent
brew cask install basictex
sudo tlmgr install latexindent
cpan -i Log::Log4perl Log::Dispatch::File YAML::Tiny File::HomeDir Unicode::GCString

settings.js: "latex-workshop.latexindent.path": "/Library/TeX/texbin/latexindent" sudo tlmgr install latexmk

source source1

Code Runner#

need to set executor for Python. it is not controlled by status bar.

ESLint#

1
{/* write anything to avoid ESLint error */}

设置#

  • Word seperator for Chiense (中文标点断句)

    JSON "editor.wordSeparators": "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?、,。?!“”‘’;:()「」【】〔〕『』〖〗",

  • Enable Snippet in Markdown Files(*.md)

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