Cmd+K

You can use ⌘K to write new, or edit existing, code right in your file, or ask it to explain what the code means.