zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.59k stars 2.64k forks source link

how to select a function #14853

Open 1925381584 opened 1 month ago

1925381584 commented 1 month ago

Check for existing issues

Describe the feature

how to select a function in zed. it can select function,class,argument in helix done by tree-sitter. Why is tree-sitter supported, but not in zed?

If applicable, add mockups / screenshots to help present your vision of the feature

No response

JosephTLyons commented 1 month ago

Hey @1925381584

You're right - I don't think we have a way of instantly selecting a function in Zed, but if you're cursor is within the function, you can repeatedly use editor: select larger syntax node until your selection encompasses the function.

1925381584 commented 1 month ago

thanks for your answer.but The really strange thing is that the selection function depends on tree-sitter, but the author of tree-sitter in zed. so..