VSCode Custom Code JumpVSCode extension to create custom code jump rules. Created to support products that use string references but are difficult to refactor. Usage
Configuration
|
| Prop | Type | Description | Example |
|---|---|---|---|
languages |
string[] |
Languages of file to enable code jump. | ["typescript", "javascript"] |
pattern |
string |
RegExp pattern for strings that create code jumps. | "'jp\\.project\\.(.*?)'" |
rules |
array |
Array of replacement rules. See rules[]. |
|
hoverHeader |
string |
Header text in hover tooltip. (Optional) | "Namespace string" |
rules[]
| Prop | Type | Description | Example |
|---|---|---|---|
type |
'string' \| 'regexp' |
Replacement type. | 'string' or 'regexp' |
pattern |
string |
String pattern to use for replacement. | "'jp\\.project\\.(.*?)'" |
replacement |
string |
String pattern after replacement. | "/src/jp/project/$1" |
Contributing
Please create an Issue or Pull requests if you have any improvements!
