Home > other >  How GoLand batch newline automatically
How GoLand batch newline automatically

Time:09-16

Now need to adjust stock code format has meet the code standards, one of the most common problem is a single line of code for more than 120 characters, I set up a line in the GoLand line is 120 characters and word Wrap when editing (Wrap on Typing), but the setting can only be triggered in edit rows long word Wrap, if the manual processing line a lot of long lines, the efficiency is very low, this will there be any way to fast, enables GoLand batch processing super long exercise its word Wrap, searched to Baidu and Google, in turn,

Thank you for

CodePudding user response:

Remember when I used the eclipse goclipse plug-ins have a automatic format menu or command, can automatically formatting code, I think golang should also have the same function,

CodePudding user response:

Or you can try go FMT command to format the
Refer to the following
https://juejin.im/post/6844903639434133517
  • Related