Netbeans 格式化问题
我正在尝试将我的格式设置为我的教授希望我的课程使用的方式,一切都正确,除了公共和私人有自己的线路并且无法找到摆脱它的选项。感谢您的帮助!我会发布一张照片,但我想你在第一次注册帐户后就不能这样做了。
现在格式化后看起来像这样:
public
boolean add(T payload)
{
abarr_ListNode<T> nextNode = new abarr_ListNode<T>(payload);
abarr_ListNode<T> firstNode = getFirstNode();
abarr_ListNode<T> lastNode = getLastNode();
我希望它看起来像这样:
public boolean add(T payload)
{
abarr_ListNode<T> nextNode = new abarr_ListNode<T>(payload);
abarr_ListNode<T> firstNode = getFirstNode();
abarr_ListNode<T> lastNode = getLastNode();
谢谢!
I am trying to set my formatting to the way my professor wants it for my class, and everything is right except that public and private have their own line and cannot find the option to get rid of that. Thanks for the help!! Id post a picture but i guess you cant do that after you first make an account.
Right now it looks like this after it is formatted:
public
boolean add(T payload)
{
abarr_ListNode<T> nextNode = new abarr_ListNode<T>(payload);
abarr_ListNode<T> firstNode = getFirstNode();
abarr_ListNode<T> lastNode = getLastNode();
Id like it to look like this:
public boolean add(T payload)
{
abarr_ListNode<T> nextNode = new abarr_ListNode<T>(payload);
abarr_ListNode<T> firstNode = getFirstNode();
abarr_ListNode<T> lastNode = getLastNode();
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于修饰符(公共、私有等),请检查以下内容:
确保未选中修饰符复选框。
要将大括号放在新行上(来自同一格式选项卡):
For the modifier (public, private etc...) check the following:
Ensure that the after modifiers checkbox is unchecked.
To place the curly-brace on a new line (from the same formatting tab):