Vscode-restclient: Open result tab either by overwrite or as horizontal split (grid system)

Created on 22 Aug 2018  路  3Comments  路  Source: Huachao/vscode-restclient

Hello,

By default once the request is done, a new tab is opened as a vertical split on the right.
Can these two behavior be changed, like:

  • Can one decide to overwrite already existing tab? Or...
  • Can one decide to split horizontally rather than vertically (now that VSCode supports a full grid system)?

Thanks and keep up the good work, this plugin is gold, a must for a webdev :smiley:

question

Most helpful comment

@AresAndy I think you can solve both your problems with settings. First is rest-client.previewColumn which will control which column to render the response, by default the value is beside, you can set it to current and it will render the response in current active panel group, without opening a new panel group. Second is the workbench.editor.openSideBySideDirection, when your first setting value is beside, the direction of it is controlled by this setting. By default, the direction is right, and you can set it to down. I think these two settings can meet your requirements. Thanks for your appreciation.

All 3 comments

@AresAndy I think you can solve both your problems with settings. First is rest-client.previewColumn which will control which column to render the response, by default the value is beside, you can set it to current and it will render the response in current active panel group, without opening a new panel group. Second is the workbench.editor.openSideBySideDirection, when your first setting value is beside, the direction of it is controlled by this setting. By default, the direction is right, and you can set it to down. I think these two settings can meet your requirements. Thanks for your appreciation.

@Huachao Thanks!
Will the workbench.editor.openSideBySideDirection apply to all sort of editors or just to the response tab?
I can't find a way to set this config only to a language or to an extension.

@AresAndy it's a setting of VSCode itself, and it will apply to all sort of editors. I also can't find a way to set this setting to language only. It seems VSCode doesn't support workbench.editor.openSideBySideDirection for language-specific setting 馃槥 Maybe you can only set this setting to workspace setting so that not affect other editors.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

akalcik picture akalcik  路  15Comments

agjs picture agjs  路  31Comments

olivier-voutat picture olivier-voutat  路  23Comments

abenedykt picture abenedykt  路  18Comments

akalcik picture akalcik  路  16Comments