且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

TODO:任务列表中未显示注释

更新时间:2023-01-14 15:04:55

默认情况下,TODO注释仅显示在当前打开文件的任务列表中. Visual Studio不会自动搜索整个解决方案.

By default, TODO comments are only shown in the task list for currently opened files. Visual Studio doesn't automatically search through the entire solution.

随着时间的流逝,许多用户最终大部分时间都打开了大多数项目文件(至少对于中等大小的项目而言),因为Visual Studio会在* .suo文件中记住这些首选项.用户通常不关闭文件,因此打开的文件容易累积. * .suo文件本身通常不保存在源代码管理中,因此,在重建工作站时,所有内容都不会立即打开,并且任务也不会显示.

Over time, many users end up with most of a project's files open most of the time (at least for moderately sized projects) because Visual Studio remembers these preferences in a *.suo file. Users generally don't close the files, and so open files tend to accumulate. The *.suo files themselves are not typically kept in source control, and so when rebuilding your workstation everything is not opened up right away anymore and the tasks won't show.