transition c++ snippets to yasnippet