【发布时间】:2021-07-11 04:27:55
【问题描述】:
我想配置 JetBrains Rider 的代码样式设置。我想这样格式化一个函数:
protected override JobHandle OnUpdate(JobHandle inputDeps) {
Entities.ForEach((ref PaddleMovementData moveData, in PaddleInputData inputData) => {
moveData.direction = 0;
moveData.direction += Input.GetKey(inputData.upKey) ? 1 : 0;
moveData.direction -= Input.GetKey(inputData.downKey) ? 1 : 0;
}).Run();
return default;
}
Rider 给了我这个:
protected override JobHandle OnUpdate(JobHandle inputDeps) {
Entities.ForEach((ref PaddleMovementData moveData, in PaddleInputData inputData) => {
moveData.direction = 0;
moveData.direction += Input.GetKey(inputData.upKey) ? 1 : 0;
moveData.direction -= Input.GetKey(inputData.downKey) ? 1 : 0;
}
)
.Run();
return default;
}
我找不到解决这个问题的方法。在 CLion 中这是可能的,所以我想 Rider 也是如此。我该怎么做?
【问题讨论】: