https://unsplash.com/photos/dC6Pb2JdAqs By Melanie Ngome Published Jul 25, 2023, 10:00 AM EDT Melanie Ngome, a frontend web developer proficient in HTML and CSS, seamlessly integrates technical writing and coding to demystify complex concepts. With experience in responsive web design, she has been actively contributing to the tech scene since 2020. Beyond words, Melanie is often immersed in debugging and writing code when she's not writing words. Sign in to your MakeUseOf account
VS Code and Git Bash are two great tools that can considerably improve your workflow as a developer. When used together, they can help you tackle a bunch of tasks, including version control, command-line operations, and more.
They can also help you with the most basic tasks, like creating a project folder and opening it in VS Code in a matter of seconds. Find out how to carry out this common task in just four simple steps.
Prerequisites for VS Code Folders With Git BashBefore you begin the process of optimizing your workflow, you need to:
Download and install Git and Git Bash on your computer. Configure Git with your name and email address. Download and install VS Code on your computer. Know how to use basic Git Bash commands.You're now ready to get started.
How to Create a Folder With Git Bash and Open It in VS Code Open Git Bash by right-clicking anywhere on your desktop and selecting Git Bash Here:cd ~/DesktopOnce you are in the desired parent folder, use the mkdir command followed by a name for your new folder to create it. For example, to create a folder named "my-project," run this command:
mkdir my-project
code my-projectThis command will launch VS Code and automatically open the specified folder in the editor.
By following these steps, you can quickly set up a new folder and begin working on your projects within the VS Code editor. You can also explore other ways to incorporate Git Bash in your workflow, such as cloning a GitHub repository or performing more advanced version control operations.
With VS Code and Git Bash at your disposal, you can streamline your tasks, boost productivity, and focus on what matters most—writing high-quality code.
Close