Refactor C/C++ snippets
This commit is contained in:
parent
8fb6507c1c
commit
b1af2d0eff
@ -43,6 +43,9 @@ snippet u64 "uint64_t" i
|
||||
uint64_t
|
||||
endsnippet
|
||||
|
||||
# TODO: include
|
||||
# 1. Default should be '#include <filename.h>'.
|
||||
# 2. Relative paths should only allow inserting a single '"'.
|
||||
snippet #include "Include directive"
|
||||
#include <${1:header}>
|
||||
endsnippet
|
||||
@ -155,7 +158,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
endsnippet
|
||||
|
||||
snippet @param "Doxygen param tag"
|
||||
snippet param "Doxygen param tag"
|
||||
@param[$1`!p snip.rv = complete(t[1], ['in', 'out'])`]
|
||||
endsnippet
|
||||
|
||||
|
@ -2,10 +2,6 @@ extends c
|
||||
|
||||
priority 1
|
||||
|
||||
# TODO: include
|
||||
# 1. Default should be '#include <filename.h>'.
|
||||
# 2. Relative paths should only allow inserting a single '"'.
|
||||
|
||||
snippet enum "Enumeration"
|
||||
enum ${1:name} {
|
||||
$0
|
||||
|
Loading…
x
Reference in New Issue
Block a user