By default, the xcsidl plug-in of Emacs does not scan Java files. In addition, there are many. aidl files in the Android source code, which are not included in the scanning range of xcscope by default. One way to solve this problem is to manually create a cssag index under the project root directory: $ find. -name "*. java "-or-name "*. aidl "-or-name "*. cpp "> cscope. files $ cs1_- B has obvious disadvantages. The indexing function is not implemented in Emacs. It is troublesome to create a shell separately. I found that the essence of this problem is that xcssag uses the csbench-indexer script to create an index, while csbench-indexer only scans the source code files of C/C ++ by default. In fact, you only need to modify csbei-indexer to extract the 140th rows from the original egrep-I '\. ([chly] (xx | pp) * | cc | hh) $ '| \ change to egrep-I '\. ([chly] (xx | pp) * | cc | hh | java | aidl) $ '| \ then you can use C-c s I to create an Android project index in Emacs.⚓Permalink