-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Rewriting pages about editors (#2552)
* initial changes * fix: rewriting the IDE-related pages * edit 'Adding or removing extensions in the embedded Open VSX registry instance' * rewrite the assembly and remove the outdated concept module * new edits * further edits * fix: typo * remove the mention of the editorconfig file * Update modules/end-user-guide/pages/url-parameter-for-the-cloud-ide.adoc Co-authored-by: Mario Loriedo <mario.loriedo@gmail.com> * Update modules/end-user-guide/pages/url-parameter-for-the-cloud-ide.adoc Co-authored-by: Mario Loriedo <mario.loriedo@gmail.com> * initial changes in response to Mario's feedback * work in progress * remove 'cloud' from IDE * add an admonition requested by Mario * incorporate new feedback from Artem * Restarting the jobs * Add 'Restart Workspace from Local Devfile' command to the corresponding section Co-authored-by: Max Leonov <mleonov@redhat.com> * rewrite of the vsx-related procedure due to changes in vsx.org * Update modules/end-user-guide/partials/proc_adding-vs-code-extensions.adoc * edit proc_adding-or-removing-extensions-in-the-embedded-open-vsx-registry-instance.adoc * Apply suggestions from code review * Update modules/end-user-guide/pages/defining-a-common-ide.adoc * Update modules/end-user-guide/pages/url-parameter-for-the-ide.adoc * Update modules/end-user-guide/pages/ides-in-workspaces.adoc Co-authored-by: Jana Vrbkova <jvrbkova@redhat.com> * Apply suggestions from code review * minor edit * another minor edit * another minor edit * another minor edit * another minor edit * another minor edit * another minor edit * minor edit * minor edit * minor edit * apply changes requested in #2552 (comment) * manually apply suggestion from code review * minor edit * test rearranging the steps due to the snippet file * rearrange admonition content * minor edit * minor edit * Update modules/end-user-guide/pages/microsoft-visual-studio-code-open-source-ide.adoc Co-authored-by: Mario Loriedo <mario.loriedo@gmail.com> * Update modules/end-user-guide/partials/proc_adding-vs-code-extensions.adoc * rename section heading and file name * edit the section heading and file name * minor edit * merge two tips * temporary xref fix - correct text, parking file * temporary cross-reference fix --------- Co-authored-by: Mario Loriedo <mario.loriedo@gmail.com> Co-authored-by: RomanNikitenko <rnikiten@redhat.com> Co-authored-by: Jana Vrbkova <jvrbkova@redhat.com>
- Loading branch information
1 parent
c47afb6
commit b00bfe2
Showing
16 changed files
with
242 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
:_content-type: PROCEDURE | ||
:navtitle : Defining a common IDE | ||
:description: Defining a common IDE | ||
:keywords: select-IDE, che-editor, che-editor-yaml | ||
:page-aliases: specifying-an-in-browser-ide-for-a-git-repository-by-using-che-editor.yaml.adoc, selecting-an-in-browser-ide-for-all-workspaces-that-clone-the-same-git-repository.adoc | ||
|
||
[id="defining-a-common-ide"] | ||
= Defining a common IDE | ||
|
||
While the xref:url-parameter-for-the-ide.adoc[URL parameter for the IDE] enables you to start a workspace with your personal choice of the supported IDE, you might find it more convenient to define the same IDE for all workspaces for the same source code Git repository. To do so, use the `che-editor.yaml` file. This file supports even a detailed IDE configuration. | ||
|
||
TIP: If you intend to start most or all of your organization's workspaces with the same IDE other than Microsoft Visual Studio Code - Open Source, an alternative is for the administrator of your organization's {prod-short} instance to specify another supported IDE as the default IDE at the {prod-short} instance level. This can be done with `.spec.devEnvironments.defaultEditor` in the `CheCluster` Custom Resource. | ||
|
||
include::partial$proc_setting-up-che-editor-yaml.adoc[leveloffset=+1] | ||
|
||
include::partial$ref_parameters-for-che-editor-yaml.adoc[leveloffset=+1] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
:_content-type: PROCEDURE | ||
:description: IDEs in workspaces | ||
:keywords: configuring, workspace, editor, ide, cloud ide | ||
:navtitle: IDEs in workspaces | ||
:page-aliases: | ||
|
||
[id="ides-in-workspaces"] | ||
= IDEs in workspaces | ||
|
||
== Supported IDEs | ||
|
||
The default IDE in a new workspace is Microsoft Visual Studio Code - Open Source. Alternatively, you can choose another supported IDE: | ||
|
||
.Supported IDEs | ||
|
||
[cols="1,1a,1a"] | ||
|=== | ||
| IDE | `id` | Note | ||
|
||
include::example$snip_{project-context}-table-of-supported-editors.adoc[] | ||
|
||
|=== | ||
|
||
== Repository-level IDE configuration in {prod-short} | ||
|
||
You can store IDE configuration files directly in the remote Git repository that contains your project source code. This way, one common IDE configuration is applied to all new workspaces that feature a clone of that repository. Such IDE configuration files might include the following: | ||
|
||
* xref:defining-a-common-ide.adoc[The `/.che/che-editor.yaml` file] that stores a definition of the chosen IDE. | ||
|
||
* IDE-specific configuration files that one would typically store locally for a desktop IDE. For example, xref:microsoft-visual-studio-code-open-source-ide.adoc[the `/.vscode/extensions.json` file.] |
31 changes: 31 additions & 0 deletions
31
modules/end-user-guide/pages/microsoft-visual-studio-code-open-source-ide.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
:_content-type: CONCEPT | ||
:description: Microsoft Visual Studio Code - Open Source IDE | ||
:keywords: user-guide, selecting, IDE, select, selecting, editor, ide, vs-code, visual-studio, visual-studio-code, jetbrains, intellij, pycharm, theia, che-theia | ||
:navtitle: Microsoft Visual Studio Code - Open Source | ||
:page-aliases: | ||
|
||
[id="microsoft-visual-studio-code-open-source-ide"] | ||
= Microsoft Visual Studio Code - Open Source IDE | ||
|
||
The {prod-short} build of link:https://github.com/microsoft/vscode[Microsoft Visual Studio Code - Open Source] is the default IDE of a new workspace. | ||
|
||
You can automate installation of Microsoft Visual Studio Code extensions from the xref:administration-guide:extensions-for-microsoft-visual-studio-code-open-source.adoc[Open VSX registry] at workspace startup. See _Automating installation of Microsoft Visual Studio Code extensions at workspace startup_. | ||
|
||
[TIP] | ||
==== | ||
* Use link:https://code.visualstudio.com/Docs/editor/tasks[Tasks] to find and run the commands specified in `devfile.yaml`. | ||
* Use *{prod2}* commands by clicking *{prod2}* in the link:https://code.visualstudio.com/api/ux-guidelines/status-bar[Status Bar] or finding them through the link:https://code.visualstudio.com/api/ux-guidelines/command-palette[Command Palette]: | ||
** *{prod2}: Open Dashboard* | ||
** *{prod2}: Stop Workspace* | ||
** *{prod2}: Restart Workspace* | ||
** *{prod2}: Restart Workspace from Local Devfile* | ||
** *{prod2}: Open Documentation* | ||
==== | ||
|
||
NOTE: You might see your organization's branding in this IDE if your organization customized it through a branded build. | ||
|
||
include::partial$proc_automating-installation-of-microsoft-visual-studio-code-extensions-at-workspace-startup.adoc[leveloffset=+1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 0 additions & 27 deletions
27
modules/end-user-guide/pages/selecting-a-workspace-ide.adoc
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...ng-an-in-browser-ide-for-all-workspaces-that-clone-the-same-git-repository.adoc
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
...les/end-user-guide/pages/selecting-an-in-browser-ide-for-one-new-workspace.adoc
This file was deleted.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
modules/end-user-guide/pages/url-parameter-for-the-ide.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
:_content-type: CONCEPT | ||
:description: URL parameter for the IDE | ||
:keywords: ide, editor, workspace-ide, workspace-editor | ||
:navtitle: URL parameter for the IDE | ||
:page-aliases: url-parameter-for-the-in-browser-ide.adoc | ||
|
||
[id="url-parameter-for-the-ide"] | ||
= URL parameter for the IDE | ||
|
||
You can use the `che-editor=` URL parameter to specify a supported IDE when starting a workspace. | ||
|
||
TIP: Use the `che-editor=` parameter when you cannot add or edit a xref:defining-a-common-ide.adoc[`/.che/che-editor.yaml`] file in the source-code Git repository to be cloned for workspaces. | ||
|
||
NOTE: The `che-editor=` parameter overrides the xref:defining-a-common-ide.adoc[`/.che/che-editor.yaml`] file. | ||
|
||
This parameter accepts two types of values: | ||
|
||
* `che-editor=__<editor_key>__` | ||
+ | ||
[source,subs="+quotes,+attributes,+macros"] | ||
---- | ||
pass:c,a,q[{prod-url}]#__<git_repository_url>__?che-editor=__<editor_key>__ | ||
---- | ||
+ | ||
|
||
.The URL parameter `__<editor_key>__` values for supported IDEs | ||
[cols="1,1a,1a"] | ||
|=== | ||
| IDE | `__<editor_key>__` value | Note | ||
|
||
include::example$snip_{project-context}-table-of-supported-editors.adoc[] | ||
|
||
|=== | ||
|
||
* `che-editor=__<url_to_a_file>__` | ||
+ | ||
[source,subs="+quotes,+attributes,+macros"] | ||
---- | ||
pass:c,a,q[{prod-url}]#__<git_repository_url>__?che-editor=__<url_to_a_file>__# <1> | ||
---- | ||
<1> URL to a file with link:https://devfile.io/docs/2.2.0/what-is-a-devfile[devfile content]. | ||
+ | ||
[TIP] | ||
==== | ||
* The URL must point to the raw file content. | ||
* To use this parameter with a xref:defining-a-common-ide.adoc[`che-editor.yaml`] file, copy the file with another name or path, and remove the line with `inline` from the file. | ||
==== |
29 changes: 0 additions & 29 deletions
29
modules/end-user-guide/pages/url-parameter-for-the-workspace-ide.adoc
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.