如何在Sublime Text中更改选项卡名称? [英] How can I change tab name in Sublime Text?
本文介绍了如何在Sublime Text中更改选项卡名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以更改名称奇怪的文件的标签名?它们无法在磁盘上重命名,但是很难跟上Sublime中的疯狂文件名:D
Is it possible to change tab names for files with strange names? They can not be renamed on disk but it is difficult to keep up with mad file names in Sublime :D
推荐答案
在ST中在控制台中,输入 view.set_name(我的更改名称)
,用所需的名称替换字符串的内容。您也可以再次使用 view#set_name
api方法来创建插件来执行此操作。
In the ST console, enter view.set_name("My changed name")
, replacing the content of the string with the name you want. You can also create a plugin to do this, again using the view#set_name
api method.
这篇关于如何在Sublime Text中更改选项卡名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文