Code Monkey home page Code Monkey logo

ooxml-viewer-vscode's Introduction

OOXML Viewer VSCode Extension

Continuous Integration Visual Studio Marketplace Open in Remote - Containers

* Please note, files must be stored locally, i.e. not in OneNote, Dropbox, etc.

Features

Display the contents of OOXML documents in VS Code

To view the contents of an OOXML document, right click on the file in the context menu, then click on the part you want to view.

Opening an OOXML Part

Edit the contents of OOXML documents in VS Code

To edit an OOXML part, select the part in the OOXML Viewer menu then edit and save. The changes will be reflected in the OOXML document.

Editing the contents of an OOXML document in VS Code

Get diff when OOXML documents are edited from outside, e.g. in Microsoft Word, Libre Office Writer, Microsoft Excel, Libre Office Calc, etc.

When a document opened by the OOXML Viewer is edited from an external program, changed parts are marked with a yellow asterisk, deleted parts are marked with a red asterisk, and new parts are marked with a green asterisk.

To view a diff with the previous version of an OOXML part, right click on the part in the OOXML Viewer menu and click "Compare with Previous".

Diff adding text to a odt file

Getting the diff of an OOXML Part

Diff adding a slide to a pptx file

Getting the diff of an OOXML Part

Diff removing a slide from a pptx file

Getting the diff of an OOXML Part

Search all parts

To search all parts, right click on the OOXML package in the tree view, select "Search Parts", enter your search term, and press enter/return. The initial search is not case sensitive or whole words only, but once the OOXML Viewer opens the search pane, all VS Code search options are available.

Searching all OOXML Parts

Search parts of any file that uses the Open Packaging Conventions

By default, the OOXML Viewer can view and edit the contents of files with these extensions: ".docx", ".xlsx", ".pptx", ".odt", ".ods", ".odp", ".docm", ".dotm", ".xlsm", ".pptm", ".dotx", ".xltx", ".xltm", ".potx", ".sldx", ".ppsx". But the OOXML Viewer extension can be used with any file type that uses the Open Packaging Conventions or any zip based file type.

To add additional file types, open the settings.json and add or update the files.associations and add an associate with "ooxml". For example, to add "*.vsix" files, settings.json should include

"files.associations": {
  "*.vsix": "ooxml"
}

After adding the file extension, restart VS Code and right click on the file to open and select "Open OOXML File" to view and edit it's contents.

Extension Settings

This extension contributes the following variables to the settings:

  • ooxmlViewer.preserveComments: Boolean, determines if comments will be preserved in XML or removed on save. Defaults to true.
  • ooxmlViewer.maximumOoxmlFileSizeBytes: Number, the maximum size of an ooxml package that the ooxml viewer will be allowed to open. Defaults to 50,000,000.
  • ooxmlViewer.maximumNumberOfOoxmlParts: Number, the maximum number of parts the ooxml viewer will be allowed to open. Defaults to 1,000.
  • ooxmlViewer.maximumXmlPartsFileSizeBytes: Number, the maximum size of an xml file in bytes that the ooxml viewer will try to format. Defaults to 1,000,000.

Release Notes

Please see the Changelog

ooxml-viewer-vscode's People

Contributors

mikeebowen avatar yuenm18 avatar dependabot[bot] avatar

Watchers

 avatar

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.