我可以使用Xcode的自动缩进来缩进延续线吗?
我想要:
BOOL someLongVariableName = someLongValue
| someOtherLongValue
| moreLongValues
BOOL someOtherLongVariableName =
someEvenLongerValue;
[someLongVariableName
performSomeAction:someLongArgument]
Run Code Online (Sandbox Code Playgroud)
我目前得到:
BOOL someLongVariableName = someLongValue
| someOtherLongValue
| moreLongValues
BOOL someOtherLongVariableName =
someEvenLongerValue;
[someLongVariableName
performSomeAction:someLongArgument]
Run Code Online (Sandbox Code Playgroud)
要明确:
我正在尝试为我的工作流程带来更多持续集成.一个挑战是找到一个与Git和Github很好地集成的样式检查器.理想情况下,如果我的样式检查器发现我的代码有任何问题,我希望我的提交被拒绝.
对于C#和Visual Studio,有很多样式检查器,如StyleCop,Resharper,FxCop,但是我无法使用这些工具来在拒绝提交的级别上强制执行检查.我也研究了pre-commit钩子但是不知道从哪里开始获取git来调用这些工具.
我可以用来设置系统的任何建议都会很棒.