Here is my find on this subject,
After setting up Sitecore and Sitecore Rocks, you can check the generated code file under the name of the created file as CodeGeneratedFile.Designer.cs (provided that the new file is named as "CodeGeneratedFile")
The file must be of the type Strongly Typed Elements

Based on this question, I wrote here in detail - Code Generation Using Sitecore Rocks
source share