Forgot password
 Register account
View 260|Reply 1

[VSCode]HTML extension config surroundingPairs

[Copy link]

3211

Threads

7832

Posts

52

Reputation

Show all posts

hbghlyj posted 2022-8-11 08:38 |Read mode
在VSCode\resources\app\extensions\html\language-configuration.json中找到
  1. "surroundingPairs":[{"open":"'","close":"'"},{"open":"\"","close":"\""},{"open":"{","close":"}"},{"open":"[","close":"]"},{"open":"(","close":")"},{"open":"<","close":">"}]
Copy the Code
加上{"open":"$","close":"$"}即可:
  1. "surroundingPairs":[{"open":"$","close":"$"},{"open":"'","close":"'"},{"open":"\"","close":"\""},{"open":"{","close":"}"},{"open":"[","close":"]"},{"open":"(","close":")"},{"open":"<","close":">"}]
Copy the Code
每次VSCode更新时都要这样修改一下config. 更新比较频繁, 所以这办法有点麻烦

效果:
之前之后
翻页.gif 翻页.gif

3211

Threads

7832

Posts

52

Reputation

Show all posts

original poster hbghlyj posted 2022-8-11 08:47
我看到D:\VSCode\resources\app\extensions\latex里面有latex-cpp-embedded-language-configuration.json和markdown-latex-combined-language-configuration.json
所以在cpp中可以embed latex, 在markdown中也可以embed latex.
要是有一个能在html中embed latex的扩展就好了

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-20 05:44 GMT+8

Powered by Discuz!

Processed in 0.011879 seconds, 25 queries