goland中文件头自动注释的操作
作者:jinyidong 时间:2024-05-05 09:32:50
1、效果图
2、操作步骤
File->Setting->Editor->File and Template
Includes
/**
* @Author: ${USER}
* @Description:
* @File: ${NAME}
* @Version: 1.0.0
* @Date: ${DATE} ${TIME}
*/
package ${GO_PACKAGE_NAME}
Files
#parse("File Header.go")
补充:GoLand 快速添加方法注释
使用插件Goanno,插件市场搜索:Goanno
/**
* @Description:
* @receiver hashMap
* @param consumer
* @param value
*/
func (hashMap *_HashMap) Foreach(consumer func(key interface{}, value interface{}) bool)
使用方式:
Meta+ctrl+/
右键->Generate->Goanno
Meta 键就是 Windows 键
需要另一个配置才能生效:
打开
Help -> Edit Custom Properties
如果第一次打开,会提示是否创建这个文件
然后加上
keymap.windows.as.meta=true
重启 IDE 就好了
以上为个人经验,希望能给大家一个参考,也希望大家多多支持asp之家。如有错误或未考虑完全的地方,望不吝赐教。
来源:https://blog.csdn.net/jinyidong/article/details/100141454
标签:goland,文件头,注释
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Python中对元组和列表按条件进行排序的方法示例
2021-04-21 22:21:22
JS中实现JAVA的hashCode算法
2008-08-03 17:00:00
用Python+OpenCV对比图像质量的几种方法
2022-06-28 10:57:59
![](https://img.aspxhome.com/file/2023/1/66821_0s.png)
python使用WMI检测windows系统信息、硬盘信息、网卡信息的方法
2023-06-22 01:57:01
使用python开发vim插件及心得分享
2023-11-22 11:30:32
![](https://img.aspxhome.com/file/2023/2/70052_0s.gif)
网页设计:巧用记事本编辑网页
2008-02-05 09:00:00
详解如何修改jupyter notebook的默认目录和默认浏览器
2022-07-01 14:34:54
![](https://img.aspxhome.com/file/2023/7/69017_0s.png)
基于python中staticmethod和classmethod的区别(详解)
2023-09-30 22:03:32
一键搞定python连接mysql驱动有关问题(windows版本)
2024-01-18 05:43:29
Python提取转移文件夹内所有.jpg文件并查看每一帧的方法
2021-11-24 05:29:30
Python autoescape标签用法解析
2023-03-14 06:36:22
![](https://img.aspxhome.com/file/2023/1/87601_0s.png)
MYSQL中Truncate的用法详解
2024-01-17 12:00:09
python模块导入方式浅析步骤
2023-05-13 01:08:13
python实现Windows电脑定时关机
2021-05-17 02:46:58
在Vue中实现添加全局store
2024-05-03 15:12:38
![](https://img.aspxhome.com/file/2023/6/130186_0s.png)
JavaScript日期工具类DateUtils定义与用法示例
2024-04-16 08:51:29
![](https://img.aspxhome.com/file/2023/3/136833_0s.png)
Python获取协程返回值的四种方式详解
2023-10-03 15:13:21
![](https://img.aspxhome.com/file/2023/9/62869_0s.jpg)
用javascript实现自定义标签
2024-04-17 10:20:10
centos7使用rpm安装mysql5.7的教程图解
2024-01-21 20:07:09
![](https://img.aspxhome.com/file/2023/4/72704_0s.jpg)
78行Python代码实现现微信撤回消息功能
2021-12-17 17:41:19
![](https://img.aspxhome.com/file/2023/0/134710_0s.jpg)