# Suggestion: VS code and automatic end statement when enter is hit

**URL:** <https://discourse.julialang.org/t/suggestion-vs-code-and-automatic-end-statement-when-enter-is-hit/74186>\
**Category:** Tooling\
**Tags:** suggestions, vscode\
**Created:** [January 7, 2022, 11:43am UTC](https://discourse.julialang.org/t/suggestion-vs-code-and-automatic-end-statement-when-enter-is-hit/74186 "2022-01-07T11:43:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![czylabsonasa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/czylabsonasa/32/8663_2.png) [@czylabsonasa](https://discourse.julialang.org/u/czylabsonasa)\
**Post date:** [October 11, 2024, 8:22am UTC](https://discourse.julialang.org/t/suggestion-vs-code-and-automatic-end-statement-when-enter-is-hit/74186/2 "2024-10-11T08:22:45Z")

</div>

not exactly the “close it with enter”, but it it works:

> [@Configure vscode to automatically complete code blocks with 'end' as appropriate](https://discourse.julialang.org/t/configure-vscode-to-automatically-complete-code-blocks-with-end-as-appropriate/56430):
>
> I find myself manually typing ‘end’ several lines down from a function header, then moving the cursor back into the function body to create the function. Is it possible to configure VSCode to do this automatically whenever I write ‘function’, ‘begin’, etc…?

---

_[View the full topic](https://discourse.julialang.org/t/suggestion-vs-code-and-automatic-end-statement-when-enter-is-hit/74186)._
