开发者

Netbeans - custom shortcut to create HTML elements

开发者 https://www.devze.com 2023-04-06 05:01 出处:网络
I\'ve been trying out Netbeans PHP stuff lately, over from Webuilder.In Webuilder, SHIFT+ENTER will make a <br /> element, while SHIFT+SPACE will make a &nbsp;.

I've been trying out Netbeans PHP stuff lately, over from Webuilder. In Webuilder, SHIFT+ENTER will make a <br /> element, while SHIFT+SPACE will make a &nbsp;.

Turns out this is really handy and I miss it in Net开发者_JAVA技巧beans. Is there a way to get this functionality somehow?


You just have to click on Edit -> Start Macro Recording then you have to type in <br /> and afterwards click on Edit -> Stop Macro Recording. In the next window you can assign a name and shortcut to your Macro

Edit: And remove to shortcut for Start new Line in Tools -> Options -> Keymap because it is interfering


The Code Templates feature might also be useful (especially for bigger chunks of code, like a class definition):

Tools > Options > Editor > Code Templates


You can create macros, and assign a shortcut to the macro.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号