Transforming Cursor into a VSCode-like Experience in WSL: Setting Up the AI Code Editor

Customize Cursor 🪝

Abdullah Alqahtani
3 min readOct 26, 2024
Transforming Cursor into a VSCode-like Experience in WSL: Setting Up the AI Code Editor

Introduction

In the world of development, a comfortable and efficient working environment is crucial for productivity. Cursor, The AI Code Editor, is built to make you extraordinarily productive, offering powerful AI tools to enhance your coding experience. Customizing Cursor in the Windows Subsystem for Linux (WSL) can optimize your workflow. This guide will walk you through the installation and setup process step-by-step.

Understanding the Cursor Code Editor

Cursor is designed to enhance productivity by integrating AI capabilities directly into the coding process. It provides a clean interface and intelligent features that allow developers to focus on writing high-quality code. Customizing your environment, including the cursor and layout, can lead to improved productivity and reduced strain during long coding sessions.

Transforming Cursor into a VSCode-like Experience in WSL: Setting Up the AI Code Editor
Transforming Cursor into a VSCode-like Experience in WSL: Setting Up the AI Code Editor

Step 1: Install the Cursor Code Editor

  1. Open PowerShell:
  • Press Win + X and select Windows PowerShell or Windows Terminal if available.
  1. Insert an image of PowerShell/Windows Terminal here.
  2. Install Cursor:
  • In the PowerShell window, run the following command:
winget install Anysphere.Cursor
Transforming Cursor into a VSCode-like Experience in WSL: Setting Up the AI Code Editor
  1. Open WSL:
  • After the installation is complete, open your WSL distribution (e.g., Ubuntu) by searching for it in the Start menu or running wsl in PowerShell.
  1. Insert an image showing how to open WSL.
  2. Navigate to the Cursor Directory:
  • In your WSL terminal, run the following command to navigate to the cursor installation directory:
cd /mnt/c/Users/<USER_NAME>/AppData/Local/Programs/cursor/resources/app/bin
  • Replace <USER_NAME> with your actual Windows username.
Transforming Cursor into a VSCode-like Experience in WSL: Setting Up the AI Code Editor
  1. Add the Cursor to Your WSL:
  2. To make this more permanent I can add the path to my .zshrc file:
echo -e '\n# Cursor \nexport PATH="$PATH:/mnt/c/Users/<USER_NAME>/AppData/Local/Programs/cursor/resources/app/bin"' >> ~/.zshrc
  1. Then source the .zshrc file with source ~/.zshrc.
  2. Now I should be able to run the cursor . command by navigating to that file and running it from the terminal.
Transforming Cursor into a VSCode-like Experience in WSL: Setting Up the AI Code Editor

Step 2: Making the Activity Bar Vertical in Cursor

  1. Open Settings:
  • In Cursor, access the settings by navigating to the settings icon or using a shortcut (typically Ctrl + ,).
  1. Insert an image showing how to access settings in Cursor.
  2. Change Activity Bar Orientation:
  • Look for the option labeled Activity Bar Orientation.
  • Change the setting from horizontal to vertical.
Transforming Cursor into a VSCode-like Experience in WSL: Setting Up the AI Code Editor
  1. Apply Changes:
  • Restart Cursor to apply the changes and see the activity bar in the new vertical orientation.
Transforming Cursor into a VSCode-like Experience in WSL: Setting Up the AI Code Editor

Conclusion

Customizing the Cursor code editor in WSL will create a coding environment similar to Visual Studio Code. These simple adjustments can enhance your focus and productivity, making your development experience more enjoyable. Take a moment to implement these changes and enjoy a more tailored workspace!

--

--

No responses yet