Add code snippet to function completion