DEV Community

özkan pakdil
özkan pakdil

Posted on • Originally published at ozkanpakdil.github.io on

Add Jetbrains Fleet to right click context menu in windows 11

Jetbrains fleet is a new editor, it is kind of vscode competitor, and little bit faster then other IDEA and VScode so I wanted to ahve it in the context menu.

@echo off
setlocal enabledelayedexpansion

:: Set the path to your Fleet executable using %USERPROFILE%
set "FLEET_PATH=%USERPROFILE%\AppData\Local\Programs\Fleet\Fleet.exe"

:: Check if running with admin privileges
net session >nul 2>&1
if %errorLevel% neq 0 (
    echo This script requires administrator privileges.
    echo Please run it as an administrator.
    pause
    exit /b 1
)

:: Add Fleet to context menu
reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Fleet" /ve /d "Open with Fleet" /f
reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Fleet\command" /ve /d "\"%FLEET_PATH%\" \"%%V\"" /f
reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Fleet" /v "Icon" /d "%FLEET_PATH%" /f

echo Fleet has been added to the context menu.
echo Please restart File Explorer or your PC for changes to take effect.
pause

Enter fullscreen mode Exit fullscreen mode

looks like below context menu has open with fleet

Top comments (0)