Comments (7)
"Foo!" may be confusing as such syntax is not used in any language...
from advancedexpressionfolding.
In Kotlin, Foo!
means platform type, i.e. the compiler doesn't known whether it's nullable or not. Kotlin has the !!
operator that asserts that a value is not null. Maybe it would be better to use its syntax.
from advancedexpressionfolding.
Perhaps use the double exclamation mark glyph ‼
(U+203C)?
It takes slightly less space than !!
https://en.wikipedia.org/wiki/!!
from advancedexpressionfolding.
I think it would be better to use what is "valid" code (at least in one language), and use a font like FiraCode if you want to collapse !!
to ‼
.
I also think it would be better to not use any suffix at all on @NotNull
, as normal rules assume any unannotated field is @NotNull
by default. The only place where you might need to differentiate is a @NotNull
method/parameter overriding a @Nullable
method/parameter.
I also think folding @Nullable
would be confusing given Foo?
already has a well-defined meaning.
from advancedexpressionfolding.
Do you think it's worth to also highlight nullable with special foreground/background different from non-nullable?
from advancedexpressionfolding.
Highlighting might actually be nice. My first thought would be fold away @NonNull
and apply the "bold underscored" effect, and "dotted line" effect for @Nullable
. Not immediately sure what colors on those underline effects would be most appropriate though, given they might need to be different for Darcula and light color schemes.
If implemented, pulling the same annotations from "@NotNull
/@Nullable
problems" inspection would be nice.
from advancedexpressionfolding.
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.