5

I have a 100k line C project with about 30k lines worth of embedded Mozilla Spidermonkey Javascript used for scripting GUI.

What is the best way to edit C and Javascript together or at least have a reasonable editor for the Javascript?

On Linux, I used to use two different instances of Eclipse one configured for C, one for Javascript. IT was not a particularly convenient solution.

Now that I am working on a Windows build, Visual Studio 2008 is doing fine with C support but Javascript support seems a bit ...lacking.

All I really want is to jump quickly between functions in the Javascript code and inspect variables. There are about 30 .js files. I can live without code completion and other niceties.

Ideally, I would see when calls to C code are made and jump to the C code but that is probably asking too much.

Otherwise it seems I am back to Notepad++ and grep.

4

1 回答 1

3

我使用Zeus 编辑器,它有一个适用于 C 语言的自动 ctags 功能,可以让你在函数和结构等内容之间跳转。

我没有使用 JavaScript 编辑器,但ctags 网页将 JavaScript 列为支持语言之一,因此它可能会起作用。

于 2012-08-28T09:29:27.373 回答