gpt4 book ai didi

visual-studio - Visual Studio : HACK, TODO 中的 token ...还有其他吗?

转载 作者:行者123 更新时间:2023-12-03 06:10:25 30 4
gpt4 key购买 nike

您认为哪些标记在 Visual Studio 中有用?(Visual Studio 2010环境任务列表 → token )

目前我只有:

  • HACK -
  • 审核 - 高
  • TODO - 正常
  • WTF - 高

(仅这些 - 删除了一些默认的)

您还使用其他产品吗?

您是否使用评论标记涵盖了任何其他重要内容?

有什么最佳实践吗?谢谢

最佳答案

我已经完成了上述大部分标记的组合。

 RED: code that simply does not work / compile
// Error - This code is throwing a specific reproducible error.
// Broken - This code is broken and will not run.
// WTF - WHAT THE FRIG.

ORANGE: code that works but is not right
// Hack - This code has intentionally been hacked in order to work. Should not go into production.
// FixMe - This code works but could be better. Needs better abstraction, maintainability, performance, etc.
// Bug - This code works and was expected to be right but a bug has been found. (usually flagged post production)
// Review - This code is probably right but should be reviewed for piece of mind.
// Smells - Same as FixMe

BLUE: code that works but either needs more features or more explaining
// Todo - Functionality is not yet implemented
// Note - Better explain what's going on. This is gives a higher profile to standard comments, and allows notes to be found in the to-do pane.

关于visual-studio - Visual Studio : HACK, TODO 中的 token ...还有其他吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2944360/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com