Generate Codes While Typing