diff --git a/README.md b/README.md index 6e1d1a54..91f9bf70 100644 --- a/README.md +++ b/README.md @@ -1612,6 +1612,13 @@ provides a list of implementations to choose from. Supported in filetypes: `cs` +#### The `GoToType` subcommand + +Looks up the symbol under the cursor and jumps to the definition of its type +e.g. if the symbol is an object, go to the definition of its class. + +Supported in filetypes: `typescript` + ### Semantic Information Commands These commands are useful for finding static information about the code, such diff --git a/doc/youcompleteme.txt b/doc/youcompleteme.txt index 2e035417..9d7acf57 100644 --- a/doc/youcompleteme.txt +++ b/doc/youcompleteme.txt @@ -72,6 +72,7 @@ Contents ~ 6. The |GoToReferences| subcommand 7. The |GoToImplementation| subcommand 8. The |GoToImplementationElseDeclaration| subcommand + 9. The |GoToType| subcommand 2. Semantic Information Commands |youcompleteme-semantic-information-commands| 1. The |GetType| subcommand 2. The |GetTypeImprecise| subcommand @@ -1909,6 +1910,14 @@ provides a list of implementations to choose from. Supported in filetypes: 'cs' +------------------------------------------------------------------------------- +The *GoToType* subcommand + +Looks up the symbol under the cursor and jumps to the definition of its type +e.g. if the symbol is an object, go to the definition of its class. + +Supported in filetypes: 'typescript' + ------------------------------------------------------------------------------- *youcompleteme-semantic-information-commands* Semantic Information Commands ~