devchat icon indicating copy to clipboard operation
devchat copied to clipboard

New command to add function declarations instead of full code to context

Open basicthinker opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe.

I need to add a class to the context but the full file is too large. Actually, I only need class and function declarations/signatures, not full implementations. Suppose you write new code using an existing class, often you need to know the function "interfaces" of the class, not every detail of full function code.

Describe the solution you'd like

Add a command to list all function declarations of the selected code or file.

Additional context

This should belong to the theme of using program analysis to help building an efficient context.

basicthinker avatar Aug 26 '23 09:08 basicthinker

You can do this by select a piece of code -> right click -> add to devchat

pplam avatar Mar 01 '24 11:03 pplam

You can do this by select a piece of code -> right click -> add to devchat

But what I mean was to only add class interfaces, not full code of a class.

basicthinker avatar Mar 29 '24 01:03 basicthinker