通过键盘快捷键插入代码模板
我在 Eclipse 中有各种代码模板,例如经常调用的头注释和库函数(全部存储在首选项、C/C++ -> 编辑器 -> 模板中)。我认为必须有一种方法将它们映射到键盘快捷键,例如,如果我按 ctrlshifth 它将插入模板“Header Comment Robotics Main”进入当前编辑器。我一直在谷歌搜索并浏览偏好设置,但找不到任何东西......至少必须有一个插件。
PS该IDE实际上是Wind River Workbench v3.0.1,它基于Eclipse v.3.3.1
I have various code templates in Eclipse such as header comments and library functions that are frequently called (all stored in Preferences, C/C++ -> Editor -> Templates). I figure there must be a way to map these to keyboard shortcuts, for example if I press ctrlshifth it will insert the contents of the template 'Header Comment Robotics Main' into the current editor. I've been Googling and looking through preferences but can't find anything...there must at least be a plugin.
P.S. The IDE is actually Wind River Workbench v3.0.1, which is based of Eclipse v.3.3.1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论