Closed
Bug 1258494
Opened 9 years ago
Closed 7 years ago
Auto complete CSS custom property names
Categories
(DevTools :: Inspector: Rules, defect, P2)
DevTools
Inspector: Rules
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1422635
People
(Reporter: pbro, Unassigned)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [btpp-fix-later])
Similarly to how text editors often offer variable name auto-completion, it would be useful if the rule-view auto-completed CSS variable names.
Say you start typing "var(--" as a value of a property in the rule-view,
it'd be nice if the rule-view then showed the usual auto-completion drop-down list (which we already have for property names and values in certain cases), populated with matching variable names if they are in scope.
Getting the list of variable names to populate the drop-down shouldn't be too hard since we only need to start looking at the current rule and then walk up the parent rules. This is exactly what the rule-view already does when it displays the list of rules for a given element.
The hard(er) part will be making the suggestion drop-down appear at the right time and place.
Reporter | ||
Comment 1•8 years ago
|
||
VS Code added this recently: https://twitter.com/dstorey/status/740042214366027781
Comment 2•8 years ago
|
||
Chrome added this recently: https://twitter.com/malyw/status/826486604609028098
Updated•7 years ago
|
Blocks: devtools/auto-completion
Reporter | ||
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•