CSCC: Simple, Efficient, Context Sensitive Code Completion
Code Completion helps developers learn APIs and frees them from remembering every detail. In this paper, we describe a novel technique called CSCC (Context Sensitive Code Completion) for improving the performance of API method call completion. CSCC is context sensitive in that it uses new sources of information as the context of a target method call. CSCC indexes method calls in code examples by their contexts. To recommend completion proposals, CSCC ranks candidate methods by the similarities between their contexts and the context of the target call. Evaluation using a set of subject systems and five popular state of the art techniques suggests that CSCC performs better than existing type or example based code completion systems. We also investigate how the different contextual elements of the target call benefit CSCC.
2014 IEEE International Conference on Software Maintenance and Evolution