首先什么是commented out code,其实就是就是被注解掉的代码,直观来看例子 this.test =function(req, res,next) {//if (foo) { // return ‘1’; // } else if (bar) { // return ‘2’; // }return3; }; 现在一些代码检测器上也会标注出 commented out code,这是需要考虑去除掉的。 那么commen...
File > Setting > Code Style > Inspections > Java 把“Commented out code” 的对钩取消之后就可以了。
commented['kɔment] [网页划词已开启] 英汉解释 n. 评论;意见;批评 vi. 发表评论;发表意见 vt. 为…作评语 参考例句 1. Would you care to comment on why you voted against the new housing project? 对您投票反对新住宅规划的原因您愿意解释一下吗?
There are no absolutes in life, and the same applies to coding. So sometimes you might still want the commented out code inside the codebase. But even then, there are superior options to just commenting out the code. Commented out code truly is just junk in your codebase, and most code...
In top-level Program.cs C# file, commented out code is not colored green but still syntax highlighted as real code. See last two lines.Fixed In: Visual Studio 2022 version 17.7.1Visual Studiowindows 10.0Visual Studio 2022 version 17.7 Preview 4 This issue is read only, because...
Before keeping commented-out code you really need to think twice (maybe thrice). Almost all projects use source-control so you can always get back to the code once it gets deleted. If you decide on leaving the code, add a comment on top indicating why you commented it out and why you...
Out of date I've long held the opinion that the only thing that can tell you the truth about the code is the code. The instant you add a comment, it's out of date. Documentation comments are beneficial enough to justify their existence (though you should try to make your code self-...
Proposed change Remove commented out code from weatherflow cloud Type of change Dependency upgrade Bugfix (non-breaking change which fixes an issue) New integration (thank you!) New feature ...
Code Issues 2 Pull requests Actions Projects Security Insights Commitcleaned up and removed commented out code Browse files master hneeb committed Mar 21, 2017 1 parent 178188b commit 755bba0 Showing 1 changed file with 7 additions and 139 deletions. Whitespace Ignore whitespace Split ...