Unless you intend on writing your own parser, you won't get anywhere near autocompletion. You should check out DCD and friends, who do have their own parser for the purpose of autocompletion.