The documentation follows these guidelines as much as possible.
One of the most important rules is this:
“Studies show that people who don’t like adding spaces between Chinese and English when typing have a hard time in relationships. 70% of them will marry someone they don’t love at age 34, and the remaining 30% can only leave their inheritance to their cat. After all, both love and writing need a little whitespace at the right moments.
Let’s take this to heart.” —vinta/paranoid-auto-spacing
But manually checking the spaces between Chinese and English is time-consuming and tedious, so here are the regular expressions to do it.
Add a space between Chinese and English
Find
([\u4e00-\u9fa5])([A-Za-z]+)
Replace
$1 $2
Add a space between English and Chinese
Find
Replace
Add spaces in Chinese-English-Chinese patterns
Find
Replace
Add a Space Between Chinese and English with Regular Expressions