# Add Blazor Spreadsheet Editor SDK component code

Syncfusion® offers a Code Generator component for Blazor platform, enabling seamless integration of the Syncfusion® Spreadsheet Editor SDK component into your Razor files with minimal effort. It automatically inserts the necessary code, including Syncfusion® Spreadsheet Editor SDK component, required namespaces, styles, and NuGet references, at your chosen location. It simplifies the process by interacting with data models and embedding the Syncfusion® Spreadsheet Editor SDK component with the desired features directly into your application.

The steps below will assist you to add the Syncfusion® Spreadsheet Editor SDK component code in your Blazor application through **Visual Studio 2022 or later**:

N> Before using the Syncfusion® Blazor Spreadsheet Editor SDK Code Generator, check whether the Syncfusion® Spreadsheet Editor SDK Extension is installed or not in the Visual Studio Extension Manager by clicking **Extensions -> Manage Extensions -> Installed**. If this extension is not installed, install the extension by following the steps in the [download and installation](download-and-installation) help topic.

1. Open your existing Blazor application or create a new Blazor application in the Visual Studio 2022 or later.

2. To open the Syncfusion® Blazor Spreadsheet Editor SDK Code Generator, select one of the options below in the Razor file, and then add Syncfusion® Spreadsheet Editor SDK component:

    **Option 1:**

    To generate a specific component code, right-click on the editor of the Razor file at the required line and Select the **Syncfusion® Blazor Spreadsheet Editor SDK Code Generator...**

    ![CodeGeneratorCommand](https://help.syncfusion.com/extension/spreadsheeteditor-sdk-extension/visual-studio/images/code-generator-command.png)

    **Option 2:**

    Open the .razor file and place the cursor at the required line, then choose **Extensions -> Syncfusion -> Essential Studio® for Spreadsheet Editor SDK -> Syncfusion® Blazor Spreadsheet Editor SDK Code Generator…** from the Visual Studio menu.

    ![CodeGeneratorMenu](https://help.syncfusion.com/extension/spreadsheeteditor-sdk-extension/visual-studio/images/code-generator-menu.png)

    It generates the selected Syncfusion® Spreadsheet Editor SDK component render code and inserts it where the cursor is positioned.

    ![ComponentRenderCode](https://help.syncfusion.com/extension/spreadsheeteditor-sdk-extension/visual-studio/images/code-generator-componentrendercode.png)

3. In the Output window, select the **Syncfusion® Blazor Spreadsheet Editor SDK Code Generator** from the **"Show output from"** drop-down to see the changes made to your application.

    ![OutputWindow](https://help.syncfusion.com/extension/spreadsheeteditor-sdk-extension/visual-studio/images/code-generator-outputwindow.png)

4. The selected Syncfusion® Blazor Spreadsheet Editor SDK component code is inserted into the active Razor file, and the application is configured with the latest NuGet package, styles, and namespaces required for the selected component.

5. If you have installed the trial setup or NuGet packages from nuget.org, you must register the Syncfusion® license key to your application as Syncfusion® has introduced the licensing system from 2018 Volume 2 (v16.2.0.41) Essential Studio® release. Navigate to the [help topic](https://help.syncfusion.com/common/essential-studio/licensing/overview#how-to-generate-syncfusion-license-key) to generate and register the Syncfusion® license key to your application. Refer to this [blog](https://www.syncfusion.com/blogs/post/whats-new-in-2018-volume-2) post to know more about the licensing changes introduced in Essential Studio®.
