# Auto indent after inputing pipe and a return

**URL:** <https://discourse.julialang.org/t/auto-indent-after-inputing-pipe-and-a-return/112994>\
**Category:** Tooling\
**Tags:** suggestions\
**Created:** [April 16, 2024, 7:26am UTC](https://discourse.julialang.org/t/auto-indent-after-inputing-pipe-and-a-return/112994 "2024-04-16T07:26:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cocoa1231](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cocoa1231/32/22215_2.png) [@cocoa1231](https://discourse.julialang.org/u/cocoa1231)\
**Post date:** [April 16, 2024, 7:26am UTC](https://discourse.julialang.org/t/auto-indent-after-inputing-pipe-and-a-return/112994/1 "2024-04-16T07:26:58Z")

</div>

I often end up chaining pipes as follows and in jupyter notebook at least, I have to input a tab after every pipe. Would it be possible somehow to tell the language server to indent after I input a pipe and return?

```julia
processed_string = open(filepath, "r") do io
    read(io) |>
        StringView |>
        v -> split(v, '\n') |>
        v -> filter(startswith("|"), v) |>
        v -> filter(x -> !startswith(x, "| ---"), v) |>
        s -> join(s, '\n') |>
        s -> replace(s, " | " => ',', "| " => "", " |" => "")
end

```

P.S I know `Chain.jl` exists, I just prefer doing it without needing to import `Chain` for every notebook.
