如何在VS Code中将代码镜头显示在行末?

huangapple go评论47阅读模式
英文:

How can I display code lenses at the end of the line in VS Code?

问题

我想在Visual Studio Code的行尾显示引用计数。我该怎么做?

如何在VS Code中将代码镜头显示在行末?

英文:

I want to show references count at the end of the line in Visual Studio Code. How can I do it?

如何在VS Code中将代码镜头显示在行末?

答案1

得分: 0

抱歉,代码部分无法翻译。以下是翻译好的内容:

你现在不能这样做。不支持此操作。但有一个正在讨论的开放问题:探讨代码镜头在行尾渲染的问题#90235。以下是你可以做的:

  • 给这个问题标记一个点赞反应以表示支持。
  • 订阅它以获得讨论和进展的通知。
  • 避免发表像“+1”这样的嘈杂评论。如果你想为讨论做出贡献,请以有意义且有助于推动进展的方式参与。

你还可以在这个问题票中找到一些关于这个主题的历史讨论,如果你想为讨论做出贡献,这可能会有所帮助:功能请求:更改编辑器中代码镜头的位置以使加载更流畅#23652。例如,在工程方面的挑战之一是计算行渲染目的的代码镜头的大小可能需要多长时间。

供您参考/学习的是,上述问题票可以通过谷歌搜索“github vscode issues show codelens at end of line”来找到。

英文:

You can't do this right now. It's not supported. But there is an open issue discussing it: Explore line-end-rendering of code lenses #90235. Here's what you can do:

  • Give the issue ticket a thumbs up reaction to show support.
  • Subscribe to it to get notified of discussion and progress.
  • Avoid making noisy comments like "+1". If you want to contribute to discussion, do so in a way that is meaningful and contributes toward forward progress.

You can also find some historical discussion on the subject in this issue ticket, which can be helpful to read up on if you want to contribute to discussion: Feature Request: change CodeLens position in the editor to make loading smoother #23652. Ex. Part of the challenge on the engineering side of things is how long it might take to calculate sizes for the codelens for line rendering purposes.

For your reference / learning purposes, the above issue tickets can be found by googling "github vscode issues show codelens at end of line".

huangapple
  • 本文由 发表于 2023年5月10日 12:50:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/76214992.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定