Coder Social home page Coder Social logo

paulelong / vscode-cpp-helper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amir9480/vscode-cpp-helper

0.0 1.0 0.0 1.69 MB

vscode extension to create implementation for c++ function prototypes.

Home Page: https://marketplace.visualstudio.com/items?itemName=amiralizadeh9480.cpp-helper

License: MIT License

TypeScript 100.00%

vscode-cpp-helper's Introduction

C++ Helper

Screen Shot C++ Helper extension for VSCode.

Features

  • Generating implementation for c++ declarations.
  • Generating header guard for headers.

Configuration

CppHelper.SourcePattern:

The array of possible patterns to find the source of a header file.

Example:

"CppHelper.SourcePattern": [
    "{FILE}.cpp",
    "{FILE}.c",
    "{FILE}.inl",
    "/src/{FILE}.cpp"
]

Where {FILE} is your active header file name.

If you don't want a relative pattern then put a / as first character.

CppHelper.HeaderGuardPattern:

The pattern of header guard. Example:

"CppHelper.HeaderGuardPattern": "{FILE}_H"

Where {FILE} is your active header file name in UPPERCASE format.

CppHelper.ContextCreateImplementation

Show or hide "Create Implementation" in context menu.

CppHelper.ContextCreateImplementationHere

Show or hide "Create Implementation Here" in context menu.

CppHelper.ContextCreateHeaderGuard

Show or hide "Create Header Guard" in context menu.

Known Issues

If you implement a previously implemented function duplicate implementation will happen.

This extension created using regex and there is no parser/compiler. so any wrong implementation may happen. If you found any wrong implementation please let me know in issues and also don't forget to send your code sample.

Change Log

0.1.0

  • Add Create Implementation Here command. (#7)
  • Add setting to hide context menu items.

0.0.7

  • Bug #5 fixed.

0.0.6

  • Bug #4 fixed.

0.0.5

  • Fix bug in Linux. (#1, #2)

0.0.4

  • Argument with default value implementation bug fixed.
  • Class template specialization support added.
  • Regex to find previous implementation improved.
  • Bug with operator() fixed.
  • SourcePattern configuration bug fixed.

0.0.3

  • Keeping the order of implementations synced to declarations as much as possible.

vscode-cpp-helper's People

Contributors

amir9480 avatar paulelong 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.