diff --git a/snippets/cpp.snippets b/snippets/cpp.snippets index 94f7de5..c177a15 100644 --- a/snippets/cpp.snippets +++ b/snippets/cpp.snippets @@ -56,3 +56,11 @@ snippet mfun ${4:void} ${1:`Filename('$1', 'ClassName')`}::${2:memberFunction}(${3}) { ${5:return}; } +snippet scout + std::cout << ${1} << std::endl; +snippet cout + cout << ${1} << endl; +snippet scin + std::cin >> ${1}; +snippet cin + cin >> ${1}; diff --git a/snippets/java.snippets b/snippets/java.snippets index c211d24..5c781a5 100644 --- a/snippets/java.snippets +++ b/snippets/java.snippets @@ -92,6 +92,8 @@ snippet tryf } snippet rst ResultSet ${1:rst}${2: = null}${3};${4} +snippet @au + @author `system("grep \`id -un\` /etc/passwd | cut -d \":\" -f5")` snippet mm @ManyToMany ${1} @@ -141,3 +143,15 @@ snippet unless (unless=${1:param});${2} snippet warn Logger.warn(${1:param});${2} +snippet sysout + System.out.println(${1}); +snippet syserr + System.err.println(${1}); +snippet /* + /* + * ${1} + */ +snippet /** + /** + * ${1} + */