How to Turn “Expand to Open Folder” On or Off in File Explorer’s Navigation Pane in Windows 11
Expand to open folder in Windows 11 automatically highlights and expands your current folder path in the File Explorer sidebar as you browse. This feature shows your exact location within your drive structure, but it can also make the folder list long and cluttered if you open many directories.
You can turn this setting on or off in under a minute using either the File Explorer Options menu or the Registry Editor (a tool for changing advanced Windows settings ). Changing this preference lets you control how much detail appears in your navigation pane.
Open File Explorer , right-click any empty space in the left sidebar, and click Expand to current folder to toggle the feature on or off. You can also open the three-dot menu, select Options, go to the View tab, and check or uncheck the expand setting to update your view.
Step 1Use the Quick File Explorer Menu
Use the right-click sidebar menu to change this setting instantly without administrator permissions. Open File Explorer , right-click any empty space in the sidebar, and click on the expand option in the menu that pops up.
- Press the Win+E on your keyboard to open File Explorer .
- Look at the left sidebar, which is called the Navigation pane. Right-click any empty space in that blank area.
- Click on Expand to current folder in the menu that pops up.

If you see a checkmark next to the option, the feature is turned on, and your folders will open automatically. If the checkmark is gone, the feature is turned off, and your sidebar stays still.
If other people share your computer, their File Explorer settings stay just the way they left them.
Step 2Adjust Settings in Folder Options
Adjusting settings in Folder Options gives you another way to control how folders behave in the navigation pane. You can find this switch by opening the folder options window from the top toolbar, going to the view tab, and locating the specific setting in the advanced list. This method works well if you prefer using standard Windows menus.
- Open File Explorer by pressing Windows Key + E.
- Click the three horizontal dots in the top toolbar to open the extra menu.
- Select Options from the list to open the Folder Options window.
- Click on the View tab at the top of the new window.
- Scroll down the advanced settings list until you find Expand to open folder.
- Check the box to turn the feature on, or uncheck it to turn it off.
- Click Apply, and then click OK to save your changes.
Step 3Hide the Sidebar Completely for Maximum Focus
Hiding the sidebar completely for maximum focus is a great choice if File Explorer still feels too crowded. You can remove the entire left-hand navigation pane in a few clicks by going to the View menu at the top of the window and turning off the sidebar option. This trick clears up your screen and requires no admin rights at all.
- Open File Explorer using Windows Key + E.
- Click the View button in the top toolbar.
- Hover your mouse over Show in the menu.
- Click on Navigation pane to remove the checkmark.
Your sidebar instantly disappears, giving you a wider, distraction-free window for browsing your files. Repeat the steps and check the box again to bring the sidebar back.
Step 4Edit the Windows Registry for Advanced Control
Change the setting directly in the Windows Registry (the central database for system settings). This method is ideal if you manage multiple computers or prefer setting up your system through the registry. Always make sure to back up your registry before changing anything to avoid unexpected system problems.
Always back up your registry before changing anything, and make sure you have administrator rights.
- Press Windows Key + R on your keyboard to open the Run box.
- Type
regeditinto the box and press Enter to open the Registry Editor. Click Yes if a prompt asks for permission. - Copy and paste this address into the address bar at the top of the window, then press Enter:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced - Look through the list on the right side for a value named
NavPaneExpandToCurrentFolder. - If you do not see it, right-click any empty space in the right pane, select New, and then click DWORD (32-bit) Value. Name the new value
NavPaneExpandToCurrentFolder. - Double-click the value and change its number data: type
1to turn the auto-expand feature on, or type0to turn it off. - Click OK and close the Registry Editor. Restart File Explorer or your computer to apply the changes.
Step 5Automate the Setting Using PowerShell
Automate the setting using PowerShell (a command-line shell for system administration) to apply the change quickly across computers. You can use this command-line tool by opening the terminal with administrator privileges and running a command. This saves you from clicking through traditional menus when setting up multiple machines.
- Right-click the Start menu button and select Terminal (Admin) or PowerShell (Admin). (Requires administrator privileges)
- If you want to turn the expand folder feature on, paste this command and press Enter:
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "NavPaneExpandToCurrentFolder" -Value 1Stop-Process -Name explorer -Force - If you want to turn the expand folder feature off, paste this command instead and press Enter:
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "NavPaneExpandToCurrentFolder" -Value 0Stop-Process -Name explorer -Force
The second command restarts File Explorer automatically so your new sidebar settings take effect right away.
Summary
Controlling how folders open in your File Explorer sidebar helps you keep your computer organized and free of clutter. You can toggle this feature using the right-click menu, the folder options window, or by hiding the sidebar entirely. Advanced users can also update the Windows Registry or run a script to manage the setting.
Was this guide helpful?
50% of readers found this helpful (2 votes)
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
No comments yet — be the first to share your thoughts!