# editor: Add setting for snippet sorting behavior for code completion \(\#29429\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/cc57bc7c96a1acad04059d7259c1e99e1a14250b)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: cc57bc7c96a1acad04059d7259c1e99e1a14250b

Requested commit: cc57bc7c96a1acad04059d7259c1e99e1a14250b

Commit: cc57bc7c96a1acad04059d7259c1e99e1a14250b

Tree: 225dc32123c3b2e275c466a6957b100163e82258

Author: Smit Barmase

Committer: GitHub

## Message

```
editor: Add setting for snippet sorting behavior for code completion (#29429)

Added `snippet_sort_order`, which determines how snippets are sorted
relative to other completion items. It can have the values `top`,
`bottom`, or `inline`, with `inline` being the default.

This mimics VS Code’s setting:
https://code.visualstudio.com/docs/editing/intellisense#_snippets-in-suggestions

Release Notes:

- Added support for `snippet_sort_order` to control snippet sorting
behavior in code completion menus.
```

## Parents

- [c157b1c45517ba20cc6b4ddd6dfcb91a98974143](https://git.cafe/gitcafe/zed/commit/c157b1c45517ba20cc6b4ddd6dfcb91a98974143?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/cc57bc7c96a1acad04059d7259c1e99e1a14250b?format=markdown)
