Step-by-Step Tutorial: Harnessing Context-Aware AI Chat for Efficient Code Generation