英文:
Gosublime:How does it can show me the function's params informations when it works
问题
它可以在Sublime Text 2中正常工作,现在我想知道函数的参数数量和类型,它只显示函数的返回类型。插件无法完成这个任务,有没有什么方法可以解决这个问题?或者我们可以修改代码来实现它。
英文:
It can work good with sublime text 2,now i want to know the function's params count and type,it only show me the function's return type. The plugin can't do the thing,is there any methods can solve the problem ? or we can modify the code to reach it
答案1
得分: 1
当你开始输入时,自动补全确实只会显示返回类型。
但是一旦你选择了一个(记住,使用Go语言,你只会有一个具有相同名称的方法),你将直接在代码中看到函数参数。
要更好地利用GoSublime提供的工具提示,你需要修改gosubl/mg9.py
脚本。
英文:
When you start typing, the auto-completion will indeed show you only the return type.
But as soon as you select one (and remember, with Go, you will have only one method with a given name), you will see the function parameters directly in the code.
To get more out of the tooltip presented by GoSublime, you would have to modify the gosubl/mg9.py
script.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论