Create CSS selector from PHPStorm editor on the fly
已回答
I just upgraded from PHPStorm Version 8 to 10. Previously, when I created a new ID or class for an HTML tag like I div I could select the class or ID name and hit a set of shortcut keys and it would allow me to create a CSS selector in a connected CSS file on-the-fly.When I upgraded to version 10 a large number of my shortcuts disappeared. Does anyone have any idea how to get this functionality to work in version 10?
Thanks for your help
Tim Anderson
请先登录再写评论。
It works just in the same way as before: Alt+Enter on class name, choose 'Create selector'
Hello,
Alt+Enter is what I have always used to create selectors on the fly. I upgraded PHPStorm on 3 machines at my house and all 3 lost the functionality during the upgrade. When I hit Alt+Enter now, nothing happens at all. Is the functionality associated with a plugin that may not be activated? I searched through all of the keymapped functions for the words "Create Selector" and they didn't show up at all.
Do you have any other suggestions as to where I might look?
Thanks for our help.
PhpStorm 2017.1.1 build #PS-171.4163.3
Same bad issue here. - What shall I do to generate CSS selectors from HTML code? - No other plugins installed in addition to those included in the factory set.
Thanks for support.
Mike
Is 'Ctrl+Shift+I' now a substitution for older 'Alt+Enter' ?
@Mike
Alt+Enter still works here (PhpStorm 2017.1.1 on Windows 10 using Default keymap)
Ctrl+Shift+I is a shortcut for "View | Quick Definition" action.
What keymap do you use?
You can check what shortcut you have assigned instead of Alt+Enter by checking at "Settings/Preferences | Keymap" -- look for "Other | Show Intention Actions" action
Thanks Andriy.
I didn't change keymap, - it's 'default'. - But it's magic. - All is working now like before and I can't reproduce that bug.
Thanks for your help.
Mike