Comments (13)
Will be fixed in 1.4.2, and supports some customization of folding behavior (placeholders, minimum length, default folding)
from unocss-intellij.
@re-ovo I tested the latest update and it looks awesome, thanks a lot for such a quick implementation and release. If I may add a couple of suggestions for improvement, it would be great if:
- clicking on the folded version would unfold only this specific item and not all in the file
- it could be a shortcut to toggle folding
- truncated text would hide classes partially, e.g. "flex pl-3 [UnoCSS]" instead of "[UnoCSS]" (don't know if this is even possible withing Intellej products)
thanks again 👍🏻
- Collapse by group is the expected behavior, imagine that when you need to read all the code completely, you can easily expand all Unocss
- The shortcut keys are provided by Intellij. Please read the relevant documentation. On Windows, it should be
Control
+-
(When the editing cursor is on the Unocss class) - This can be done, but I don't think it's useful
from unocss-intellij.
Code folding is already supported
from unocss-intellij.
interesting. Could you explain how it can be enabled?
from unocss-intellij.
interesting. Could you explain how it can be enabled?
It uses the folding shortcut provided by Intellij, which you can view in the Code > Folding menu
from unocss-intellij.
Can you specify which exact option? I use Webstorm and I don't see anything specific to class names
from unocss-intellij.
I mean this, or use shortcut Ctrl+Numpad-
from unocss-intellij.
If I understand correctly these settings only allow to manually toggle specific portions, what I'm looking for is a default behavior. When I enter a file I would like classes to be folded by default and expanded only on click. Is there a way to fold them by default in Webstorm?
from unocss-intellij.
I guess there is no such aggressive folding behavior in Intellij, even if the default folding is set to true, it still requires you to manually fold after editing, or reopen the file. Is that enough?
from unocss-intellij.
Essentially, I want the same behavior for classes as for inline styles. When I open a file I see styles truncated like this
from unocss-intellij.
Sure
from unocss-intellij.
Great, thanks a lot
from unocss-intellij.
@re-ovo I tested the latest update and it looks awesome, thanks a lot for such a quick implementation and release. If I may add a couple of suggestions for improvement, it would be great if:
- clicking on the folded version would unfold only this specific item and not all in the file
- it could be a shortcut to toggle folding
- truncated text would hide classes partially, e.g. "flex pl-3 [UnoCSS]" instead of "[UnoCSS]" (don't know if this is even possible withing Intellej products)
thanks again 👍🏻
from unocss-intellij.
Related Issues (20)
- 提供设置: 在哪些情况下显示类名和颜色等等 HOT 2
- 升级到2023.3 版本插件 HOT 1
- webstorm 2023.3.1 版本,鼠标放上去不显示提示框,显示类的含义 HOT 5
- @apply 警告显示未知的规则 HOT 6
- 代码提示的问题 HOT 16
- theme 函数识别不到颜色 HOT 3
- 1.4.0报错 HOT 9
- Matcher怎么匹配字符串prop HOT 2
- 带有伪类选择器的颜色更改报错 HOT 3
- IDE开启一段时间后,下划线消失 HOT 11
- Attributify not work HOT 5
- UnocssProcess被多次初始化
- Tagify plugin support HOT 2
- WebStorm 使用 Unocss 1.4.4 时打字卡顿问题 HOT 4
- 💥Exceptions in 1.4.5 HOT 3
- webstorm2023.4打开项目会报错
- Not working with html/pug in vue tamplate HOT 5
- CPU to the moon HOT 9
- Webstorm 2023.3.5版本没有任何提示 HOT 5
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 unocss-intellij.