# Using visual Studio Code in Codepen

**URL:** <https://forum.freecodecamp.org/t/using-visual-studio-code-in-codepen/332625>\
**Category:** General\
**Created:** [December 12, 2019, 4:17am UTC](https://forum.freecodecamp.org/t/using-visual-studio-code-in-codepen/332625 "2019-12-12T04:17:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![developerstew](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/developerstew/32/126554_2.png) [@developerstew](https://forum.freecodecamp.org/u/developerstew)\
**Post date:** [December 12, 2019, 4:17am UTC](https://forum.freecodecamp.org/t/using-visual-studio-code-in-codepen/332625/1 "2019-12-12T04:17:07Z")

</div>

So I have finished the Redux section of freecodecamp and I am on my way to complete the Redux projects. I wanted to know whether it is possible to write my own React code in visual studio and add this to Codepen? Also how do I do this?

I have searched on this and cannot seem to find an answer.

---

<div class="post-metadata">

**Author:** ![kevinSmith](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevinsmith/32/72934_2.png) [@kevinSmith](https://forum.freecodecamp.org/u/kevinSmith)\
**Post date:** [December 12, 2019, 4:44am UTC](https://forum.freecodecamp.org/t/using-visual-studio-code-in-codepen/332625/2 "2019-12-12T04:44:47Z")

</div>

Sure. You’re going to need to import whatever libraries you need. Most people will work in a node environment using something like webpack or use webpack behind the scenes with something like create-react-app. You could try and to it without it by just importing the libraries you need and working in one large file. But really, if you’ve reached that point, I think you’ve gone beyond what something like codepen can comfortably do. Don’t get me wrong - codepen is a cool tool. I use it often to quickly try little things out. But realistically, once you get into interesting apps, it gets increasingly difficult to manage in something like codepen. Using the other options, you can split things into separate files and make things a lot more modular. That’s much more like what you’ll see on a job. I would suggest finding some videos of people building redux apps on youtube. There’s bound to be a few of people building them from scratch with WP or CRA.

But if you _did_ decide to write in VSC and import it to codepen, you’d just need to make the imports work. If you have a working redux app in codepen, you could always export it to a zip file, unpack it locally, and mess with that, to get an idea.

---

<div class="post-metadata">

**Author:** ![developerstew](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/developerstew/32/126554_2.png) [@developerstew](https://forum.freecodecamp.org/u/developerstew)\
**Post date:** [December 13, 2019, 9:33am UTC](https://forum.freecodecamp.org/t/using-visual-studio-code-in-codepen/332625/3 "2019-12-13T09:33:55Z")

</div>

Alright I will give that a try. Thanks for the feedback!

---

<div class="post-metadata">

**Author:** ![lasjorg](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lasjorg/32/280761_2.png) [@lasjorg](https://forum.freecodecamp.org/u/lasjorg)\
**Post date:** [December 13, 2019, 3:42pm UTC](https://forum.freecodecamp.org/t/using-visual-studio-code-in-codepen/332625/4 "2019-12-13T15:42:21Z")

</div>

I would suggest using [StackBlitz](https://stackblitz.com) or [CodeSandbox](https://codesandbox.io) for React. CodeSandbox let you [import a GitHub repository](https://codesandbox.io/docs/importing#import-from-github) so you can work locally, then push to GitHub and import it on CodeSandbox.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 16, 2021, 11:30am UTC](https://forum.freecodecamp.org/t/using-visual-studio-code-in-codepen/332625/5 "2021-01-16T11:30:36Z")

</div>

Closed on January 16, 2021, 11:30am UTC


