Vscode: Add option to set a top-padding of the first line

Created on 2 May 2018  路  3Comments  路  Source: microsoft/vscode

  • VSCode Version: 1.22.2
  • OS Version: Windows 10 Pro 1709, build 16299.371

Steps to Reproduce:

  1. Open new file
  2. The first line is aesthetically close to the top of the window, especially if you want to start with a header or class definition etc.
  3. Find out there is no way to add a padding there

I really think there should be an option editor.firstLinePadding for it.
image

editor-contrib feature-request verified

Most helpful comment

Agree, but think it could be editor.paddingTop, along with left and right.

All 3 comments

Agree, but think it could be editor.paddingTop, along with left and right.

Definitely an edge case and not noticeable with small values, but the minimap doesn't take the padding into account when rendering 馃檪

image

@connor4312 Yes, that is the current way the minimap works. It does not render any view zones, only lines. This can be observed for all view zones, such as the ones added by the diff editor, the inline references and this new padding.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

villiv picture villiv  路  3Comments

trstringer picture trstringer  路  3Comments

biij5698 picture biij5698  路  3Comments

VitorLuizC picture VitorLuizC  路  3Comments

DovydasNavickas picture DovydasNavickas  路  3Comments