GithubHelp home page GithubHelp logo

spences10 / vscode-vba Goto Github PK

View Code? Open in Web Editor NEW
53.0 6.0 30.0 73 KB

VBA syntax highlighting and snippets for use in VSCode

License: MIT License

TypeScript 100.00%
syntax-highlighting vba snippets vscode vbscript

vscode-vba's Introduction

VSCode VBA

Marketplace Version Installs Rating

Syntax Highlighting

This package provides syntax highlighting and snippets of VBA.

Based off an import of the VBScript.tmLanguage file from the Sublime Text VBScript repository.

Snippets

Basic code

  • dim declarations
  • if/else
  • for/while
  • sub/function with errHandler
  • case

Installation

Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.

ext install vba

Contributing

Please fork this repository and contribute back using pull requests.

Any contributions, large or small, major features, bugfixes and integration tests are welcomed and appreciated but will be thoroughly reviewed and discussed.

Contacts

You can contact me in the following ways:

Links

Handy links

I struggled to find how to generate a token after not doing anything with this project for well over a year:

To get to your token creation, go here:

Create a token:

  • Name: vsce
  • Organisation: All accessible organizations
  • show all scopes, select:
    • Marketplace
      • Check Acquire and Manage

Publish with CLI:

# login
vsce login <publisher name>
# install the things
npm i
# use the token created in earlier step
vsce package
# myExtension.vsix generated
# bump version
vsce publish minor # | major | patch
# vsce publish major, minor or patch
vsce publish -p <add created token here>

If you get ERROR Failed request: (401) see here:

Some good documentation on publishing with the CLI:

vscode-vba's People

Contributors

greenkeeper[bot] avatar hirooih avatar imgbotapp avatar pecitro avatar renovate-bot avatar retailcoder avatar sancarn avatar spences10 avatar stepanhakobyan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vscode-vba's Issues

Have a question about suffix?

I have pasted the VBA code into vscode editor,
and I have installed the VScode VBA, I am just curious, what suffix should I name it? and then it can show highlight.

Code that start with rem get highlighted as VBA comment

Issue Type: Bug

Code that start with rem or Rem gets highlighted as VBA Comment.

Extension version: 1.4.0
VS Code version: Code 1.44.2 (ff915844119ce9485abfe8aa9076ec76b5300ddd, 2020-04-16T16:36:23.138Z)
OS version: Windows_NT x64 6.3.9600

System Info
Item Value
CPUs Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz (4 x 2712)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.90GB (3.62GB free)
Process Argv
Screen Reader no
VM 0%

Extension is not enabled after loading

Environment:

  • Using VSCode 1.9.1 on Windows 7 SP1 x64 as a standard user
  • Running VSCode from the %LocalAppData%\Code folder
  • The VBA extension is successfully installed and appears in the Extensions pane.

Problem:

I can see that the extension is dimmed (disabled), and the Reload button is visible.

Steps taken to resolve (unsuccessfully)

  1. Clicking Reload does reload the VSCode window, but does not alter the state of the extension: it remains disabled and the Reload button is still visible. Closing VSCode and restarting it also does not alter the state.
  2. I have examined the Console output in the Developer Tools pane, and no information there seems to suggest any issues with the extension being loaded.

Other possibly relevant info

These are all the other extensions I have installed. All except VBA are enabled and seem to function as expected:

  • beautify, 0.8.8
  • bootstrap-3-snippets, 0.0.9
  • code-settings-sync, 2.5.0
  • csharp, 1.7.0
  • debugger-for-chrome, 2.5.3
  • html-css-class-completion, 1.0.3
  • html-snippets, 0.1.0
  • JavaScriptSnippets, 1.4.0
  • Material-theme, 1.0.3
  • PowerShell, 0.9.0
  • regex, 0.0.7
  • tslint, 0.8.1
  • unique-lines, 1.0.0
  • vba, 1.0.13
  • vba-snippets, 1.0.1
  • vscode-color, 0.2.3
  • vscode-eslint, 1.2.6
  • vscode-icons, 7.2.0
  • vscode-instant-markdown, 1.0.0
  • vscode-vba-icons, 1.0.2
  • xml, 1.7.0

[ENHANCEMENT]Definition jump and Hover

Implementing Definition jumps and Hover will make VBA programming easier.

Definition jump moves the cursor to the location where Function And Sub is defined.
Hover pops up the definition of Function And Sub.

Thanks.
definition jump and hover

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.