goland custom code template

In GoLand, we can not only modify the existing code templates, but also create our own code templates and configure them on demand.

1. Modify the existing code template

Now enter the code template you want to change on the code editing page, then click the small light bulb button in the lower right corner编辑活动模版设置 , and then select it .

2. Create a new code template

Open it 设置 -> 编辑器 -> 实时模版 -> 新增代码模版, just write our template by imitating other code templates, and finally don’t forget to modify the scope of the template: it takes effect in Go code

Guess you like

Origin blog.csdn.net/qq_35760825/article/details/131752938