简体   繁体   中英

Can I turn ReSharper TODOs into compiler warnings?

With ReSharper installed, comments like this

// TODO: fix this glaring defect

are highlighted and show up in the To-do Explorer window. Is there any way to turn these into compiler warnings?

为什么不两全其美:

#warning // TODO: fix this glaring defect.

Not currently possible, as todo items are only searched for in the contexts given by the checkboxes (so only in comments, strings, and identifiers at the time of writing). Support for what you want is on the JetBrains bugtracker as RSRP-71440 #warnings can't be captured in the TODO list - note that in May 2011, the target fix version was pushed out from 5.1 to an unspecificed future version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM