Comments (5)
如果是让底部状态栏显示非空白字符,可以按配置教程里面写的修改一下。简而言之,就是在设置中搜索hanzi counter
,把Counter: Template
中的status-bar-zh
全部复制出来,把最后的
return `$(pencil) ${this.numberWithCommas(character)} 字符`;}
修改成
return `$(pencil) ${this.numberWithCommas(nonwhite)} 字符`;}
再粘贴回去即可。
配置确实有些麻烦,但是是为了保持灵活性。
from vscode-hanzi-counter.
希望能把底部状态栏上面显示的默认值改为非空白字符数
我更推荐字词数,像Word里一样
默认显示的项目我不打算改,但是可以自己按上面的方法修改显示的项目,由模板代码可以看出,要显示字词数只需要按上面的方法改成
return `$(pencil) ${this.numberWithCommas(cjk + cjk_punct + segmenter_word)} 字符`;}
from vscode-hanzi-counter.
你所说的第一点,「非空字符串」是指「非空白字符数」吗,这项已经有了;如果不是的话,那你详细描述一下。第二点我会考察一下怎么实现,如果我能比较好地实现,会加上这个功能。
from vscode-hanzi-counter.
是指非空白字符数,我觉得作为一个字数统计插件,绝大部分人的场景都是拿来统计 markdown 文件,所以空格是不应该算字数的,希望能把底部状态栏上面显示的默认值改为非空白字符数。
from vscode-hanzi-counter.
希望能把底部状态栏上面显示的默认值改为非空白字符数
我更推荐字词数,像Word里一样
from vscode-hanzi-counter.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-hanzi-counter.