Coder Social home page Coder Social logo

hermanwenhe / vscode-debugger-extension-for-office-addins Goto Github PK

View Code? Open in Web Editor NEW

This project forked from officedev/vscode-debugger-extension-for-office-addins

0.0 0.0 0.0 1.4 MB

VS Code extension to allow for debugging Office Add-ins in VS Code

vscode-debugger-extension-for-office-addins's Introduction

Microsoft Office Add-in Dev Kit for Visual Studio Code

What is Office Add-in Dev Kit?

The Office Add-in Dev Kit helps developers set up the environment, create and build Office JS add-ins with a steamlined developer experience.

Getting started

Open Office Add-in Dev Kit to create a new app and start coding!

In the Office Add-in Dev Kit for Visual Studio Code, you can easily discover all applicable commands in the sidebar and Command Palette with the keyword "Office". It also supports Command Line Interface (CLI) to increase efficiency.

Prerequisites

Verify you have the right prerequisites for building Office add-ins and install some recommended development tools. Read more details.

Create your add-in

Use the Office Add-in Dev Kit for Visual Studio Code to set up your first add-in project. Create your Office add-in project using the following steps:

  • Ensure you've installed the Microsoft Office Add-in Dev Kit for Visual Studio Code.
  • Select the Office Add-in Dev Kit icon in the Visual Studio Code sidebar.
  • Select Create a New Add-in button from the sidebar.
  • Select an Office app that you want to build the add-in for.
  • Select an add-in template from the list of available templates.
  • Select JavaScript/TypeScript as the programming language.
  • Choose a location where your new add-in will be created in a new folder.
  • Type a name for your project and hit Enter.

Configure your add-in

An Office add-in includes two basic components: an XML manifest file, and your own web application.

  • The manifest defines various settings, including how your add-in integrates with Office clients.
  • Your web application needs to be hosted on a web server, or web hosting service, such as Microsoft Azure.

When a add-in project is created, you can explore and customize the components by reviewing the key files listed below.

  • The ./manifest.xml file in the root directory of the project defines the settings and capabilities of the add-in.
    You can check whether your manifest file is valid by selecting Validate Manifest File in the Office Add-in Dev Kit extension tree view.
  • The ./src/taskpane/taskpane.html file contains the HTML markup for the task pane.
  • The ./src/taskpane/taskpane.css file contains the CSS that's applied to content in the task pane.
  • The ./src/taskpane/taskpane.js file contains the Office JavaScript API code that facilitates interaction between the task pane and the Word application.

Preview your add-in in Office apps

To understand how the add-in will work in Office apps, you can use the Office Add-in Dev Kit to easily run and debug your Office add-in in your local dev environment. Dev_Kit_Preview

Check and Install Dependencies

Select Check and Install Dependencies to check your environment and install necessary dependencies in order to run and debug the add-in code.

Preview Your Office Add-in (F5)

Select Preview Your Office Add-in(F5) on the side panel to start running and debugging the add-in code. A Word/Excel/PowerPoint app will launch with the add-in sample side-loaded.

Stop Previewing Your Office Add-in

Select Stop Previewing Your Office Add-in to stop debugging.

Explore Code Samples

Explore our samples to help you quickly get started with the basic Teams app concepts and code structures.

Reporting security issues

Give security researchers information on how to privately report security vulnerabilities found in your open-source project. See more details Reporting security issues.

Telemetry

The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft's privacy statement. Our privacy statement is located at Microsoft Privacy Statement. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.

Telemetry Configuration

Telemetry collection is on by default. To opt out, please set the telemetry.enableTelemetry setting to false. Learn more in our FAQ.

Trademark

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

License

Copyright (c) Microsoft Corporation. All rights reserved.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.