Removing the file preview on the right side of the

2019-01-21 04:31发布

This beauty appeared after a recent update, and it is very distracting to me.

Screenshot code view in VS Code. On the right hand side is a very narrow column containing a small version of the code in the main view. There is a red arrow pointing to it, indicating that this is what the OP wants removed.

I searched through the menus, but didn't find any setting to remove it. Is there any way to banish it from the editor?

9条回答
beautiful°
2楼-- · 2019-01-21 04:44

While all the answers here will accomplish what the original question asks, they are showing a dated, manual way of hiding the minimap. Current versions of Code have a "Toggle Minimap" item in the View menu, which will hide the minimap without the need to edit anything manually in User Settings.

查看更多
\"骚年 ilove
3楼-- · 2019-01-21 04:45

This is called the minimap, and, as stated in that link,

If you would like to disable minimap, you can set "editor.minimap.enabled": false in your user or workspace settings.

Once you save the settings file, the minimap will be gone.

查看更多
唯我独甜
4楼-- · 2019-01-21 04:45

Oowekyala's answer is correct. I am adding a description with image for better understanding. Here is the number from 1 to 5 that describe the steps. Firstly click on File->Preferences->Settings. Then you will get User Setting page. Next, type "editor.minimap.enabled" in the search box(step-4). you will get setting option. On left of it edited option(step-5) will be available right click to it.

enter image description here

查看更多
狗以群分
5楼-- · 2019-01-21 04:50

Simply Click F1 a text box will appear search for minimap and select View:Toggle MiniMap

查看更多
我想做一个坏孩纸
6楼-- · 2019-01-21 04:53

You can also toggle the minimap from the Command Palette. You can go to 'View' and select Command Palette or just Ctrl+Shift+P and type in the word 'minimap', you will instantly get the option to toggle the minimap.

minimap toggle option

查看更多
叛逆
7楼-- · 2019-01-21 04:57

On Mac: Code - Preferences - Settings, and in the right panel add the following line:

    "editor.minimap.enabled": false

Please care the commas, this file needs them after each but the last line. (It will warn you if a comma is missing.)

查看更多
登录 后发表回答