File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,47 +6,48 @@ or closing braces complete.
66
77This features is disabled by default to enable or disable it
88
9- ```
9+ ``` java
1010codeView. enablePairComplete(enableFeature);
1111```
1212
1313To enable or disable move the cursor to the center of the pair after inset it
1414
15- ```
15+ ``` java
1616codeView. enablePairCompleteCenterCursor(enableFeature);
1717```
1818
1919To use this feature you need to create a Map that contains the pairs keys and values for example
2020
21- ```
21+ ``` java
2222Map<Character , Character > pairCompleteMap = new HashMap<> ();
2323pairCompleteMap. put(' {' , ' }' );
2424pairCompleteMap. put(' [' , ' ]' );
2525pairCompleteMap. put(' (' , ' )' );
2626pairCompleteMap. put(' <' , ' >' );
2727pairCompleteMap. put(' "' , ' "' );
28+
2829```
2930
3031To add your full pairs map
3132
32- ```
33+ ``` java
3334codeView. setPairCompleteMap(pairCompleteMap);
3435```
3536
3637To add a single pair
3738
38- ```
39+ ``` java
3940codeView. addPairCompleteItem(' [' , ' ]' );
4041```
4142
4243To remove a single pair
4344
44- ```
45+ ``` java
4546codeView. removePairCompleteItem(' [' );
4647```
4748
4849To remove all the pairs
4950
50- ```
51+ ``` java
5152codeView. clearPairCompleteMap();
52- ```
53+ ```
You can’t perform that action at this time.
0 commit comments