Comments (2)
Some Java (as in 'non-Android') logging frameworks also support "format pattern" feature.
For example, in SLF4J: logger.error("one two three: {} {} {}", "a", "b", "c", new Exception("something went wrong"));
So folding support for logging would be useful for "plain Java" code too.
from advancedexpressionfolding.
Didn't realize this wasn't available yet. String.format would definitely be a nice addition; however, there is a popular Android logging library called Timber that is a fusion between Logcat and String.format. If you support String.format, it seems that support of Timber would be plausible.
However, this might bring up the question of if there should be an AdvancedAndroidFolding library that would work together as this is specific to Android code and not necessarily Java.
https://github.com/JakeWharton/timber
Original Timber code example:
Timber.i("A button with ID %s was clicked to say %s.", button.getId(), button.getText());
Could be shortened to...
Timber.i("A button with ID ${button.id} was clicked to say ${button.text}.");
from advancedexpressionfolding.
Related Issues (20)
- NullPointerException when calling isReferenceTo
- Memory leak of EditorImpl though AdvancedExpressionFoldingHighlightingComponent.highlighters map
- BUG: File does not load using Arrays.asList(-1)
- It seems broken on IDEA 2019.3 EAP built on October 9, 2019 HOT 6
- three dots instead of every folding HOT 2
- add keyboard shortcut to analyze open file
- Keep syntax highlighting for some folds ?
- Fold short control statements to one line
- Fold short javadoc comments into one line
- when i folded the exception code,it show wrong.
- IDEA 2020.1 support
- Suggestion: Possibility to automatically fold every comment HOT 1
- Incompatible with IntelliJ 2020.2 HOT 3
- Exception: Light files should have PSI only in one project HOT 1
- java.lang.NoClassDefFoundError: sun/misc/FloatingDecimal HOT 1
- What is the latest release ? HOT 3
- Incorrect folding of for loop
- Allow configuration
- Plugin fails to load on the current master builds (212.3987)
- The plugin can't be installed/updated in IDEA 2021.3 HOT 9
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 advancedexpressionfolding.