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
50.49k stars 3.13k forks source link

Properly start new JSDoc line #8973

Open segersniels opened 8 months ago

segersniels commented 8 months ago

Check for existing issues

Describe the feature

Currently when you write JSDoc and go to a new line it starts out of place and doesn't follow the indentation instead of prefilling the * for you. Ideally this mimics other editors like VSCode and properly continues on new lines.

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

Instead of:

/**
foo
 */

do this:

/**
 * foo
 */
tyleralbee commented 3 months ago

Is there a workaround for this in the meantime?

trivikr commented 3 months ago

Screen recordings for reference

Zed https://github.com/user-attachments/assets/6cf3d8e8-e046-4522-a04b-c5a418ebf398
VSCode https://github.com/user-attachments/assets/f7c5ef03-2286-4dc5-b1fd-20a587a07cfb
heymynameisrob commented 4 weeks ago

Bumping this as would love a fix. Really annoying.