Auto trim code snippets