Tag intelligent code generation