在ReSharper中,我打开了“Wrap Long Lines”,并且所有“Wrap Parameters”选项设置为“Chop if long”.
displayMessage("This is a really long string that cuts off the screen ...",type,item);
ReSharper想要格式化这样的行:
displayMessage( "This is a really long string that cuts off the screen ...",item);
但是我希望它像这样格式化:
displayMessage("This is a really long string that cuts off the screen ...",item);
这可能吗?我意识到这是因为长字符串作为第一个参数,所以它想把它放在自己的行上,但我更喜欢切割参数与左括号一致.
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。