Git Product home page Git Product logo

cfgfunctionsgenerator-arma3's Introduction

CfgFunctions.hpp Generator (Arma 3)

This Visual Studio Code extension creates CfgFunctions.hpp file with a simple click of a button when developing Arma 3.

Features

  • Automatic generation of CfgFunctions.hpp file with a simple button click in VS Code interface (CfgFunctions.hpp file needs to be open and active)
  • Support for even complex projects with multiple dependencies or otherwise complex/large folder structure
  • Personal/project tag included in settings (mandatory)
  • Autocompletion for functions in the Functions Library that have been defined/added by the user (since v0.2.0) - note that you need to auto-generate CfgFunctions.hpp once after opening the editor for the autocompletion to become active
  • Generation of CfgRemoteExec.hpp template based on your custom functions by running a task (Ctrl + Shift + P) (since v0.3.0)

Requirements

  • Up-to-date Visual Studio Code installation
  • (Empty) CfgFunctions.hpp file in MISSION_OR_CAMPAIGN_ROOT/functions/ folder
  • Filenames of SQF files to be included must start with 'fn_'
  • SQF files must be located in subfolder of MISSION_OR_CAMPAIGN_ROOT/functions/ folder
  • CfgFunctions.hpp file needs to be open and the active file in the editor

Extension Settings

  • Personal/project tag to avoid naming conflicts

Known Issues

  • You must click the CfgFunctions.hpp file contents in editor view at first before clicking the "Generate CfgFunctions.hpp (Arma 3)" button.
  • CfgFunctions.hpp generation might fail if CfgFunctions.hpp file has been edited and not saved when clicking the generate button.
  • Autocompletion of custom user defined functions works only after running the automatic generation of CfgFunctions.hpp at least once after opening the editor.
  • If you generate CfgRemoteExec.hpp, 1. the file must not exist yet (the operation will fail if the file exists already to prevent accidental overwrites), 2. you need to have generated CfgFunctions.hpp at least once, and 3. have the CfgFunctions.hpp file active in the editor (by e.g. clicking on it's contents in the normal editor view) when you run the Generate CfgRemoteExec template (Arma 3) task. (Ctrl + Shift + P)

It's WIP. Expect issues. Bug reports are highly appreciated!

Release Notes

0.1.5

Initial release.

0.2.0

Added autocompletion for functions in the Functions Library defined by the user.

0.3.0

Added an option/task to generate CfgRemoteExec.hpp template based on the CfgFunctions.hpp.

Note that you must generate the CfgFunctions.hpp at least once and make sure that the file is active by clicking on it in the editor view before you can run the Generate CfgRemoteExec template (Arma 3) task. (Ctrl + Shift + P)

0.4.0

Fixed IntelliSense suggestions. The editor/IntelliSense should now suggest autocompletion of defined functions properly when you start typing the full function name (starting from your developer tag/prefix).


Enjoy!

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.