# Attach boilerplate code to vscode cell start and end \[Feature idea\]

**URL:** <https://discourse.julialang.org/t/attach-boilerplate-code-to-vscode-cell-start-and-end-feature-idea/55668>\
**Category:** VS Code\
**Created:** [February 20, 2021, 10:10am UTC](https://discourse.julialang.org/t/attach-boilerplate-code-to-vscode-cell-start-and-end-feature-idea/55668 "2021-02-20T10:10:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcell\_Havlik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marcell_havlik/32/37424_2.png) [@Marcell\_Havlik](https://discourse.julialang.org/u/Marcell_Havlik)\
**Post date:** [February 20, 2021, 10:10am UTC](https://discourse.julialang.org/t/attach-boilerplate-code-to-vscode-cell-start-and-end-feature-idea/55668/1 "2021-02-20T10:10:45Z")

</div>

Hey julianners,  
I am just curious whether is it possible to create a mechnaism that could be overrideable for julia vscode plugin.

I could imagine like this:

```julia
function VSCodeServer.begin_cell()
   global starttime = time()
end

```

```julia
function VSCodeServer.end_cell()
  global starttime
  println("Cellrun took $(time()-starttime)")
end

```

Or is this possible any other way?

I would find it useful because this way I could have a better understanding of my code. I realise during development my run time just grew from 10 seconds to 1000 seconds, but I don’t know when did it happen from the last 3 months. 😃 This way I could be more aware of the runtime of my project, so I could calculate with better. (It is just an idea, also interested about how would you do better than this.)
