I am working on a WinForms project with some repetitive tasks everyday. So I thought creating code a snippet will help me out, but it works for fixed code only.
You can try code generators based on scripts like CodeSmith (there is also something free).
You can write your script based on variables you define (also based on database items) then generate the code.
Generating code is a good approach becouse saves time but also standardize the code.