如何在VSCode中将JS内置函数方法的悬浮窗文档设置为中文?
在VSCode编辑器中写js代码,如何让鼠标悬浮js内置函数方法时出现的悬浮窗内的文档为中文?
安装过Chinese (Simplified) 插件(重启VSCode后)也是英文
比如悬浮数组的arr.find方法出现提示窗文档:
(method) Array<any>.find(predicate: (value: any, index: number, obj: any[]) => unknown, thisArg?: any): any (+1 overload)
Returns the value of the first element in the array where predicate is true, and undefined otherwise.
@param predicate
find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
@param thisArg
If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.
回复
1个回答
适合作为回答的
- 经过验证的有效解决办法
- 自己的经验指引,对解决问题有帮助
- 遵循 Markdown 语法排版,代码语义正确
不该作为回答的
- 询问内容细节或回复楼层
- 与题目无关的内容
- “赞”“顶”“同问”“看手册”“解决了没”等毫无意义的内容