开发者

In Netbeans IDE, desired behavior is when i press b then space, it creates two curly brackets with cursor in middle

when I press b-space for code block it does:

开发者_Python百科
{
(cursor here)
}

How can I go about accomplishing this? Thanks.


Go to Tools/Options/Editor/Code Templates. Create a new template for the letter b (New, type b, Ok), then type the following into Expanded Text:

{
    ${cursor}
}

Finally, set Expand Template on to Space.

By the way, you can get the same behavior by pressing {, and hitting an enter.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜