VSCode多行显示tabs,将新打开Tab的放到最后

多行显示tabs,并减小tabs大小

// app\out\vs\workbench\workbench.desktop.maincss 添加:
.monaco-workbench .part.editor>.content .editor-group-container>.title .tabs-container>.tab {
height: 26px !important;
}

.monaco-workbench .part.editor>.content .editor-group-container>.title .editor-actions {
height: 26px !important;
}

.monaco-workbench .part.editor>.content .editor-group-container>.title .editor-actions .action-label, .monaco-workbench .part.editor>.content .editor-group-container>.title .title-actions .action-label {
height: 26px !important;
}

.tabs-and-actions-container > .monaco-scrollable-element {
height: auto !important;
}

.tabs-and-actions-container > .monaco-scrollable-element > .tabs-container {
height: auto !important;
flex-wrap: wrap;
}

将新打开Tab的放到最后,目前vscode是将新打开的tab页放在激活tab后面

// app\out\vs\workbench\workbench.desktop.main.js 文件
targetIndex = indexOfActive + 1; // 改为 targetIndex = this.editors.length

vscode关闭完整性检查,不然会提示vscode已经损坏请重新安装啥的,也可以重新计算相关文件的MD5等

isPure: isPure, // 改为 isPure: true,    

重新计算文件完整性MD5 参考:https://github.com/lehni/vscode-fix-checksums/blob/master/extension.js

// 文件 product.json "checksums": {} 之间的内容
// 计算方法:取自上述参考文件,以后有空再写一个CPP工具
function computeChecksum(file) {
  var contents = fs.readFileSync(file)
  return crypto
    .createHash('md5')
    .update(contents)
    .digest('base64')
    .replace(/=+$/, '')
}

 

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值