Skip to content

Commit 3a5bbc2

Browse files
docs(repl):documentation about user snippets (#1379)
* docs(repl):documentation about user snippets * Update getting-started/repl/user-snippets.md Co-authored-by: Yordan <[email protected]> * Update getting-started/repl/intergration.md Co-authored-by: Yordan <[email protected]> * Update getting-started/repl/intergration.md Co-authored-by: Yordan <[email protected]> * Update getting-started/repl/overview.md Co-authored-by: Yordan <[email protected]> * Update getting-started/repl/overview.md Co-authored-by: Yordan <[email protected]> * Update getting-started/repl/overview.md Co-authored-by: Yordan <[email protected]> * Update getting-started/repl/user-snippets.md Co-authored-by: Yordan <[email protected]> * Update getting-started/repl/user-snippets.md Co-authored-by: Yordan <[email protected]> * Update getting-started/repl/snippets-and-scaffolders.md Co-authored-by: Yordan <[email protected]> * Update getting-started/repl/snippets-and-scaffolders.md Co-authored-by: Yordan <[email protected]> * Update getting-started/repl/user-snippets.md Co-authored-by: Yordan <[email protected]> * Update getting-started/repl/user-snippets.md Co-authored-by: Yordan <[email protected]> * Update getting-started/repl/user-snippets.md Co-authored-by: Yordan <[email protected]> * Update getting-started/repl/user-snippets.md Co-authored-by: Yordan <[email protected]> * Update getting-started/repl/user-snippets.md Co-authored-by: Yordan <[email protected]> * Update getting-started/repl/user-snippets.md Co-authored-by: Yordan <[email protected]> * Update getting-started/repl/user-snippets.md Co-authored-by: Yordan <[email protected]> * Update getting-started/repl/user-snippets.md Co-authored-by: Yordan <[email protected]> * Update getting-started/repl/user-snippets.md Co-authored-by: Yordan <[email protected]> * docs(repl): address feedback --------- Co-authored-by: Yordan <[email protected]>
1 parent 205fdcc commit 3a5bbc2

File tree

5 files changed

+72
-8
lines changed

5 files changed

+72
-8
lines changed
110 KB
Loading
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: Code Editor Snippets
3+
page_title: Code Editor Snippets in Telerik REPL for Blazor
4+
description: Telerik REPL for Blazor allows you to login with your Telerik account and save all snippets you run.
5+
slug: blazor-repl-code-editor-snippets
6+
tags: telerik,blazor,repl,login,user,account,save,snippet
7+
published: True
8+
position: 3
9+
---
10+
11+
12+
# Saving Your Editor Code Snippets in Telerik REPL for Blazor
13+
14+
Once you log in, [Telerik REPL for Blazor](https://www.telerik.com/blazor-ui/repl) automatically saves every code snippet you create from your account. To create a code snippet, enter the desired code and click the **Share** button in the toolbar.
15+
16+
To log into [Telerik REPL for Blazor](https://www.telerik.com/blazor-ui/repl), use your existing Telerik account or register as a new user by clicking the user icon in the toolbar. You will be prompted to the Telerik login page where you can enter your credentials.
17+
18+
19+
You can manage the saved code snippets in the **User Snippets** section of the sidebar:
20+
21+
![User Snippets menu in Telerik REPL for Blazor](../images/repl-user-snippets.png)
22+
23+
The **User Snippets** menu allows you to review and manage your code snippets:
24+
25+
* **Open**—Clicking a snippet will automatically populate it in the editor. You can run it or make changes. To save the changed snippet, click the **Share** button—the updated snippet will be saved as a new one.
26+
27+
* **Filter**—You can filter the snippets by name or creation date.
28+
29+
* **Sort**—You can sort the snippets by name or date of creation in ascending or descending order.
30+
31+
* **Rename**—Telerik REPL for Blazor automatically generates a name when saving the snippet. You can change that default name to something meaningful.
32+
33+
* **Delete**—While you are logged in, Telerik REPL for Blazor automatically saves each snippet you generate. The **User Snippets** menu allows you to delete the snippets you no longer need.
34+
35+
36+
## See Also
37+
38+
* [Predefined Snippets and Scaffolders in Telerik REPL for Blazor]({%slug blazor-repl-snippets-scaffolders%})

getting-started/repl/intergration.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ Telerik REPL for Blazor is integrated in the UI for Blazor resources (documentat
1414

1515
In this article:
1616

17-
* [Documentation Integration](#documentation-integration)
18-
* [Demos Integration](#demos-integration)
19-
* [Visual Studio and Visual Studio Code Integration](#visual-studio-and-visual-studio-code-integration)
17+
- [Telerik REPL for Blazor Integration](#telerik-repl-for-blazor-integration)
18+
- [Documentation Integration](#documentation-integration)
19+
- [Demos Integration](#demos-integration)
20+
- [Visual Studio and Visual Studio Code Integration](#visual-studio-and-visual-studio-code-integration)
21+
- [Sharing to REPL in Visual Studio](#sharing-to-repl-in-visual-studio)
22+
- [Sharing to REPL Visual Studio Code](#sharing-to-repl-visual-studio-code)
23+
- [See Also](#see-also)
2024

2125
## Documentation Integration
2226

@@ -73,3 +77,9 @@ If no selection is made, the whole file will be shared to Telerik REPL for Blazo
7377
* To use the command palette, select a section that you want to share, search for **Share to Telerik REPL for Blazor** in the command palette and select it.
7478

7579
![VS Code - Share to Telerik REPL for Blazor](../images/vs-code-extension-share-to-repl-command-palette.png)
80+
81+
82+
## See Also
83+
84+
* [User Snippets in Telerik REPL for Blazor]({%slug blazor-repl-code-editor-snippets%})
85+
* [Predefined Snippets and Scaffolders in Telerik REPL for Blazor]({%slug blazor-repl-snippets-scaffolders%})

getting-started/repl/overview.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ previous_url: /getting-started/repl
1616

1717
The <a href = "https://blazorrepl.telerik.com/" target = "_blank">Telerik REPL for Blazor application</a> interface consists of five main sections:
1818

19-
* [Toolbar](#toolbar)
20-
* [Sidebar - Drawer](#sidebar---drawer)
21-
* [Editor](#editor)
22-
* [Result View](#result-view)
23-
* [Error List](#error-list)
19+
- [Telerik REPL for Blazor Overview](#telerik-repl-for-blazor-overview)
20+
- [Toolbar](#toolbar)
21+
- [Sidebar](#sidebar)
22+
- [Editor](#editor)
23+
- [Result View](#result-view)
24+
- [Error List](#error-list)
25+
- [See Also](#see-also)
2426

2527
<!-- ![Overview](images/repl-overview.png) -->
2628

@@ -38,6 +40,8 @@ The Toolbar of Telerik REPL for Blazor provides access to the operations that yo
3840

3941
* **Feedback**&mdash;leads to the [public feedback portal for Telerik REPL for Blazor](https://feedback.telerik.com/repl) where you can share your enhancement requests and eventual bug reports. We use it to constantly monitor the community interest and demand and thus improve our products.
4042

43+
* **Login/Register**&mdash;allows you to [login and save snippets to your account]({%slug blazor-repl-code-editor-snippets%}).
44+
4145
## Sidebar
4246

4347
The Sidebar provides the following functionalities:
@@ -46,6 +50,8 @@ The Sidebar provides the following functionalities:
4650

4751
* **Static Asset Manager**&mdash;it allows you to add CDN URLs for your CSS or JavaScript files. Place the file URL in the input and click the download button. This will automatically add references for the corresponding files. Once the desired asset is added, you can easily enable/disable it via a switch. In case some of the installed NuGet packages include CSS/JavaScript files, they will automatically be listed in this section, so you can manage them.
4852

53+
* **User Snippets**&mdash;allows you to review and manage the snippets saved in your account. [Read more about the user snippets...]({%slug blazor-repl-code-editor-snippets%})
54+
4955
* **Telerik UI Asset Manager**&mdash;shows the Telerik.UI.for.Blazor package version and allows you to change or update it. Starting from September 14, 2022 (R3 2022), each REPL example maintains its Telerik UI package version until changed explicitly. The Asset Manager also shows a list with the available [built-in themes]({%slug general-information/themes%}) and their corresponding [color swatches]({%slug themes-swatches%}). When you select a new theme or swatch, you can immediately see the applied styles in the Result View.
5056

5157
* **Snippets and Scaffolders**&mdash;it allows you to add predefined component snippets or scaffold some components defining your desired configuration. [Read more about Snippets and Scaffolders...]({%slug blazor-repl-snippets-scaffolders%})
@@ -68,3 +74,8 @@ Telerik REPL for Blazor provides an Error List that displays details for the com
6874

6975
The Error list is located at the bottom of the [Editor](#editor).
7076

77+
## See Also
78+
79+
* [User Snippets in Telerik REPL for Blazor]({%slug blazor-repl-code-editor-snippets%})
80+
* [Predefined Snippets and Scaffolders in Telerik REPL for Blazor]({%slug blazor-repl-snippets-scaffolders%})
81+
* [Integration of Telerik REPL for Blazor with VS and VS Code]({%slug blazor-repl-integration%})

getting-started/repl/snippets-and-scaffolders.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,8 @@ To use the scaffolders:
5757

5858

5959
Telerik REPL for Blazor allows using one scaffolder at a time. By default, the scaffolder will always be added to the `__Main.razor` file as this is the entry `@page` of the application. When you scaffold a component, it will override the current code in the `__Main.razor` file.
60+
61+
## See Also
62+
63+
* [User Snippets in Telerik REPL for Blazor]({%slug blazor-repl-code-editor-snippets%})
64+
* [Integration of Telerik REPL for Blazor with VS and VS Code]({%slug blazor-repl-integration%})

0 commit comments

Comments
 (0)