diff --git a/README.md b/README.md index 4ed3a826..775cd0b4 100644 --- a/README.md +++ b/README.md @@ -1614,6 +1614,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 6f54de1e..7c7f463f 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 @@ -1908,6 +1909,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 ~