Skip to content

How to set the size of webview panel #812

Discussion options

You must be logged in to vote

Hi @amitjoshi438,

In Visual Studio Code, you can open a webview panel in one of the available view columns using vscode.ViewColumn. However, there are only three available view columns: One, Two, and Three. These correspond to the left, center, and right columns of the editor respectively. There is no built-in view column value for a "fourth" of the editor.

If you want to display a webview panel in one of the quarters of the editor, you'll need to use one of the existing view columns (One, Two, or Three) and then manually resize your panel to occupy only a quarter of the available space.

Here's a general outline of how you can do this:

  1. Open your webview panel in one of the available col…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@taewanseoul
Comment options

Answer selected by theReynald
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants