-
Notifications
You must be signed in to change notification settings - Fork 91
feat: add view query param #182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,6 +121,29 @@ The default `"auto"` setting enables showing changes as user types, which may pr | |
|
||
A map of default environment variables that will be set in each top-level shell process. | ||
|
||
### <var>view</var> | ||
|
||
<table> | ||
<tr> | ||
<td>Type</td> | ||
<td><code>"default" | "editor"</code></td> | ||
</tr> | ||
<tr> | ||
<td>Default</td> | ||
<td><code>"default"</code></td> | ||
</tr> | ||
</table> | ||
|
||
The `view` option allows you to configure the layout the editor uses at startup. | ||
|
||
The available settings are: | ||
|
||
- `"default"` (default): Editor & Preview side-by-side | ||
- `"editor"`: Just the editor, no preview | ||
|
||
You can also specify this option under the key `pullRequests` or `issues` to make it different when opening respectively. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "to make it different when opening respectively." this one sounds complex to me. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Test comment for release. Feel free to ignore |
||
|
||
|
||
## With URL parameters | ||
|
||
### <var>startScript</var> | ||
|
@@ -144,3 +167,7 @@ You can also run several scripts sequentially using comma-separated values. For | |
``` | ||
https://stackblitz.com/edit/project-id?startScript=build,serve | ||
``` | ||
|
||
### <var>view</var> | ||
|
||
Use the `view` parameter to configure the layout the editor uses at startup. Either `default` or `editor` |
Uh oh!
There was an error while loading. Please reload this page.