Eclipse显示行数和/或文件大小 [英] Eclipse show number of lines and/or file size
问题描述
有没有办法让Eclipse显示当前打开的文件中的总行数,和/或文件大小(以千字节为单位),屏幕底部靠近当前行/列显示?
Is there a way for Eclipse to show the total number of lines in the currently open file, and/or the file size in kilobytes, at the bottom of the screen near the current line/column display?
是否有一个更改例如的插件 77:70
像 77(450):70
?
Is there is a plugin that changes e.g. 77 : 70
to something like 77(450) : 70
?
推荐答案
我不知道这样做的插件,但您可以创建自己的插件,将控件项添加到工具栏。
I don't know of a plugin that does this but you can create your own which adds a control item to a toolbar.
在控件的类中,您可以扩展 ControlContribution ,然后您可以创建一个带任何文本的标签你要。查看此处为一个类似的例子。您可以创建一个工具栏,其中显示有关当前打开的文件的任何信息。
In the control's class you can extend ControlContribution and then you can create a label with any text you want. Look here for a similar example. You could create a toolbar which shows any information you want about the currently opened file.
这篇关于Eclipse显示行数和/或文件大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!