What I have is a large amount of C code and a bunch of swig wrappers to export all the functions into python. We like using python for testing, it's great, but my problem is there don't seem to be any editors out there that will share tags between python and C.

我所拥有的是大量的C代码和一组swig包装器,以将所有函数导出到python中。我们喜欢使用python进行测试,这很好,但是我的问题是似乎没有任何编辑器可以在python和C之间共享标记。

What I want is to ctrl+click (or whatever shortcut) on a function in a *.py file and have it go to the function definition in a *.c file.

我想要的是ctrl+click(或任何快捷方式)在*中的函数上。把它放到函数定义中。c文件。

Geany seems to do an alright job of this but it has some limitations (poor gdb support, etc). Eclipse, netbeans, Qt Creator are all good editors for C (creator being my fav) but they don't support cross-language tags. Eclipse in particular supports python quite well in PyDev but a tag in python is totally separate from a tag in C, and I can't seem to find a way to make them share. Vim/emacs probably do due to the somewhat lower level ctags use but I don't like either of them.

Geany似乎在这方面做得不错,但它有一些局限性(gdb支持不佳等)。Eclipse、netbeans、Qt创建者都是C的优秀编辑器(创建者是我的最爱),但他们不支持跨语言标记。Eclipse在PyDev中尤其支持python,但是python中的标记与C中的标记是完全分开的,我似乎找不到使它们共享的方法。Vim/emacs可能是因为ctags使用的比较低,但我不喜欢它们中的任何一个。

Any suggestions?

有什么建议吗?

1 个解决方案

#1


0

I do this using UltraEdit, but UltraEdit is not great if you do not like it :-) Its not really an IDE more like an Editor. However the way I do it can most likely be ported to e.g. Eclipse.

我使用的是super - edit,但是如果你不喜欢的话,它并不是很好:-)它并不是一个更像编辑器的IDE。但是我的方法很可能是移植到Eclipse。

I generate the Ctags file my self. and force UE to use the custom generated cTags file. This works like a charm.

我自己生成Ctags文件。并强制UE使用自定义生成的cTags文件。这很有魅力。

更多相关文章

  1. VIM 编辑器使用基础介绍
  2. MYSQL从同一个表中选择标记关联的id
  3. 个人网站对xss跨站脚本攻击(重点是富文本编辑器情况)和sql注入攻击
  4. Mix-Editor图文编辑器----Android图文编辑器
  5. 如何在android地图中使用TextWatcher显示带标题的搜索标记并隐藏
  6. 从Wordpress API JSON响应反序列化嵌套的JSON标记和附件
  7. 包含带标记的值的XML属性文件

随机推荐

  1. 在Navicat 中设置 SQL 格式的方法
  2. mysql 去除重复数据
  3. mysql数据库大规模数据读写并行时导致的
  4. 牛客网数据库SQL实战(1-5)
  5. SSAS中用于层次结构的数据驱动安全性
  6. 在php中连接mysql列值
  7. 如何在大描述值中找到字符串
  8. sqlserver,mysql,oracle通用的模拟和改进
  9. Mysql 修改字段类型
  10. 写SQL语句,如何找到部分字段内容一样的两