Comments (1)
As for providing a fix all option, that'll take a bit more design. This is implemented as a refactoring rather than a diagnostic/code fix pair, so the "FixAllProvider" APIs aren't available. I chose to implement this as a refactoring because this operation struck me as something that you might not always want to do. So, it seemed a bit invasive to squiggle every potential String.Format() call that could be converted to string interpolation.
You are absolutely right, there should never be squiggles on all the String.Format calls. But I would still like the the convert all options to be available when I want them. Same with "Use Expression-Bodied Member", I'd like convert all available but hate all the messages. The FixAll options should be available independent of the warning level. Seems like a change to VS is needed.
from csharpessentials.
Related Issues (20)
- CSE0003 doesn't preserve comments HOT 1
- Analysers should ignore code with [GeneratedCode] attribute HOT 3
- CodeFix error shows up as `UseExpressionBodiedMemberCodeFix` HOT 1
- Consider using a getter-only auto property is reported if static property is set from class constructor
- Shouldn't suggest static getter only autoprops HOT 2
- CSE0003 is raised on methods which have conditional compilation HOT 1
- CSE0003 Multiline comments are truncated HOT 2
- Add support for detecting missing switch cases HOT 1
- Addon does not load for VS 2015 Update 1 RC HOT 11
- CSE0001 shows both as Error and Warning HOT 2
- 'Use nameof' codefix doesn't preserve leading trivia if the parameter string is on a new line HOT 1
- String Interpolation in Expression Bodied Members
- Argument mismatch on linq
- CSE0002: false positive for datamembers
- CSE0002 raised for Razor (.cshtml) files
- Documentation: how to disable warnings and keep the codefix actions
- Quick toogle for string / interpolated string
- Visual Studio 2017 Support HOT 1
- string interpolation conversion does not work properly for many expressions
- Visual Studio 2019 Support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csharpessentials.