Automatically align function arguments

Is there a way in the RStudio IDE to automatically align function arguments similar to the following?

objective         = obj,
booster           = 'gbtree',
eta               = params$eta[i],
gamma             = params$gamma[i],
max_depth         = params$max_depth[i],
colsample_bytree  = params$colsample_bytree[i],
colsample_bylevel = params$colsample_bylevel[i],
lambda            = params$lambda[i],
alpha             = params$alpha[i],
subsample         = params$subsample[i])

I find this much easier to read vs. arguments that aren't aligned.

1 Like

There is this add-in that does exactly that -

1 Like

Thanks! Exactly what I've been looking for.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.