有没有办法创建一个热键来在 PhpStorm 中打印特定的字符串
Is there a way to create a hotkey to print a specific string in PhpStorm
我想将字符串粘贴绑定到特定的热键,我经常使用 console.log
,将它绑定到热键上真的很有帮助。
您可以在
中创建 Live 模板
Preferences | Editor | Live templates
在您键入选定的缩写并按 Tab 键后,它会扩展为一个代码片段。
例如,我写 "cl",当我按 Tab 键时,它会变成 console.log(|)
添加直播template/snippet。您可以找到有关片段的所有信息 here
我想将字符串粘贴绑定到特定的热键,我经常使用 console.log
,将它绑定到热键上真的很有帮助。
您可以在
中创建 Live 模板Preferences | Editor | Live templates
在您键入选定的缩写并按 Tab 键后,它会扩展为一个代码片段。
例如,我写 "cl",当我按 Tab 键时,它会变成 console.log(|)
添加直播template/snippet。您可以找到有关片段的所有信息 here