@@ -35,16 +35,19 @@ Snippets which trigger ends with "!" are `autosnippet`.
3535
3636#### Normal Snippets
3737
38- | Trig | Desc | Context |
39- | :-------:| --------------------------------------------------------------------------------------------------| :--------:|
40- | ` ctor! ` | Expand to default constructor | In Class |
41- | ` dtor! ` | Expand to default destructor | In Class |
42- | ` cc! ` | Expand to default copy constructor | In Class |
43- | ` mv! ` | Expand to default move constructor | In Class |
44- | ` ncc! ` | Expand to delete copy constructor | In Class |
45- | ` nmv! ` | Expand to delete move constructor | In Class |
46- | ` ncm! ` | Expand to delete copy and move constructor | In Class |
47- | ` fn ` | Expand to lambda function in argument list or function body, otherwise expand to normal function | All |
38+ | Trig | Desc | Context Required |
39+ | :--------: | ------------------------------------------------------------------------------------------------ | :--------------: |
40+ | ` ctor! ` | Expand to default constructor | In Class |
41+ | ` dtor! ` | Expand to default destructor | In Class |
42+ | ` cc! ` | Expand to default copy constructor | In Class |
43+ | ` mv! ` | Expand to default move constructor | In Class |
44+ | ` ncc! ` | Expand to delete copy constructor | In Class |
45+ | ` nmv! ` | Expand to delete move constructor | In Class |
46+ | ` ncm! ` | Expand to delete copy and move constructor | In Class |
47+ | ` fn ` | Expand to lambda function in argument list or function body, otherwise expand to normal function | No |
48+ | ` \| trans ` | Expand to ranges::views::transform pipe. | No |
49+ | ` \| filter ` | Expand to ranges::views::filter pipe. | No |
50+ | ` cpo ` | Expand to customize point object. | No |
4851
4952#### Postfix Snippets
5053
@@ -64,16 +67,17 @@ Snippets which trigger ends with "!" are `autosnippet`.
6467] @any_expr
6568```
6669
67- | Trig | Desc (placehoder: ` ? ` ) | Expr before cursor |
68- | :------:| ----------------------------------------------------------------| :------------------:|
69- | ` .be ` | Expand to begin and end exprs | ` any_expr ` |
70- | ` .mv ` | Wraps with ` std::move(?) ` | ` any_expr ` |
71- | ` .fwd ` | Wraps with ` std::forward<decltype(?)>(?) ` | ` any_expr ` |
72- | ` .val ` | Wraps with ` std::declval<?>() ` | ` any_expr ` |
73- | ` .dt ` | Wraps with ` decltype(?) ` | ` any_expr ` |
74- | ` .uu ` | Wraps with ` (void)? ` | ` any_expr ` |
75- | ` .ts ` | Switch indent's coding style between CamelCase and snake_case. | ` indent ` |
76- | ` .sc ` | Wraps with ` static_cast<>(?) ` | ` any_expr ` |
70+ | Trig | Desc (placehoder: ` ? ` ) | Expr before cursor |
71+ | :-------: | ------------------------------------------------------------------ | :----------------: |
72+ | ` .be ` | Expand to begin and end exprs | ` any_expr ` |
73+ | ` .mv ` | Wraps with ` std::move(?) ` | ` any_expr ` |
74+ | ` .fwd ` | Wraps with ` std::forward<decltype(?)>(?) ` | ` any_expr ` |
75+ | ` .val ` | Wraps with ` std::declval<?>() ` | ` any_expr ` |
76+ | ` .dt ` | Wraps with ` decltype(?) ` | ` any_expr ` |
77+ | ` .uu ` | Wraps with ` (void)? ` | ` any_expr ` |
78+ | ` .ts ` | Switch indent's coding style between ` CamelCase ` and ` snake_case ` . | ` indent ` |
79+ | ` .sc ` | Wraps with ` static_cast<>(?) ` | ` any_expr ` |
80+ | ` .single ` | Wraps with ` ranges::views::single(?) ` | ` any_expr ` |
7781
7882</details >
7983
@@ -95,28 +99,27 @@ Snippets which trigger ends with "!" are `autosnippet`.
9599 (call_expression)
96100 (identifier)
97101 (field_expression)
98-
102+
99103 (generic_type)
100104 (scoped_type_identifier)
101105 (reference_type)
102106] @expr_or_type
103107```
104108
105109| Trig | Desc (placehoder: ` ? ` ) | Expr before cursor |
106- | :----------: | ------------------------------------------------------------ | :------------------: |
107- | ` .rc ` | Wraps with ` Rc::new(?) ` if expr, ` Rc<?> ` if type | ` expr_or_type ` |
110+ | :--------: | ---------------------------------------------------------- | :----------------: |
111+ | ` .rc ` | Wraps with ` Rc::new(?) ` if expr, ` Rc<?> ` if type | ` expr_or_type ` |
108112| ` .arc ` | Wraps with ` Arc::new(?) ` if expr, ` Arc<?> ` if type | ` expr_or_type ` |
109113| ` .box ` | Wraps with ` Box::new(?) ` if expr, ` Box<?> ` if type | ` expr_or_type ` |
110- | ` .mu ` | Wraps with ` Mutex::new(?) ` if expr, ` Mutex<?> ` if type | ` expr_or_type ` |
111- | ` .rw ` | Wraps with ` RwLock::new(?) ` if expr, ` RwLock<?> ` if type | ` expr_or_type ` |
112- | ` .cell ` | Wraps with ` Cell::new(?) ` if expr, ` Cell<?> ` if type | ` expr_or_type ` |
114+ | ` .mu ` | Wraps with ` Mutex::new(?) ` if expr, ` Mutex<?> ` if type | ` expr_or_type ` |
115+ | ` .rw ` | Wraps with ` RwLock::new(?) ` if expr, ` RwLock<?> ` if type | ` expr_or_type ` |
116+ | ` .cell ` | Wraps with ` Cell::new(?) ` if expr, ` Cell<?> ` if type | ` expr_or_type ` |
113117| ` .refcell ` | Wraps with ` RefCell::new(?) ` if expr, ` RefCell<?> ` if type | ` expr_or_type ` |
114118| ` .ref ` | Wraps with ` &? ` | ` expr ` |
115- | ` .refm ` | Wraps with ` &mut ? ` | ` expr ` |
116- | ` .ok ` | Wraps with ` Ok(?) ` | ` expr ` |
119+ | ` .refm ` | Wraps with ` &mut ? ` | ` expr ` |
120+ | ` .ok ` | Wraps with ` Ok(?) ` | ` expr ` |
117121| ` .err ` | Wraps with ` Err(?) ` | ` expr ` |
118- | ` .some ` | Wraps with ` Some(?) ` | ` expr ` |
122+ | ` .some ` | Wraps with ` Some(?) ` | ` expr ` |
119123| ` .println ` | Wraps with ` println!("{:?}", ?) ` | ` expr ` |
120124
121125</details >
122-
0 commit comments