All Projects → caizhengxin → vscodefileheader

caizhengxin / vscodefileheader

Licence: BSD-3-Clause license
VSCode File Header

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to vscodefileheader

Kiss Headers
💡Python package for HTTP/1.1 style headers. Parse headers to objects. Most advanced available structure for http headers.
Stars: ✭ 91 (+435.29%)
Mutual labels:  header
Animatingtableviewheader
A Swift project explaining how to animate a header above a UITableView
Stars: ✭ 151 (+788.24%)
Mutual labels:  header
React-Native-top-navbar
This reactnative package provides custom header component for mobile apps. also providing utility method to change statusbar color.
Stars: ✭ 27 (+58.82%)
Mutual labels:  header
Arrowdrawable
纯Paint实现的一个射箭效果,可用作Loading动画。
Stars: ✭ 103 (+505.88%)
Mutual labels:  header
Omegarecyclerview
Custom RecyclerView with additional functionality. Allow you add divider, itemSpace, emptyView, sticky header and some other features
Stars: ✭ 132 (+676.47%)
Mutual labels:  header
Copyright Header
© Copyright Header is a utility to manipulate software licenses on source code.
Stars: ✭ 168 (+888.24%)
Mutual labels:  header
Floatthead
Fixed <thead>. Doesn't need any custom css/html. Does what position:sticky can't
Stars: ✭ 1,193 (+6917.65%)
Mutual labels:  header
pagination
Aplus Framework Pagination Library
Stars: ✭ 167 (+882.35%)
Mutual labels:  header
React Lazy Hero
⚡️ A hero component for React
Stars: ✭ 134 (+688.24%)
Mutual labels:  header
React Native Header View
Fully customizable Header View with multiple design options for React Native.
Stars: ✭ 221 (+1200%)
Mutual labels:  header
React Native Collapsible Header Views
ScrollView, FlatList, SectionList with collapsible headers + HOC for wrapping custom scrollables
Stars: ✭ 120 (+605.88%)
Mutual labels:  header
Multiwaveheader
Wave,水波,Android 炫酷的多重水波纹 MultiWaveHeader
Stars: ✭ 1,643 (+9564.71%)
Mutual labels:  header
React Native Head Tab View
Add collapsible headers to your tab-view components.
Stars: ✭ 171 (+905.88%)
Mutual labels:  header
Artifacts Kit
Pseudo-malicious usermode memory artifact generator kit designed to easily mimic the footprints left by real malware on an infected Windows OS.
Stars: ✭ 99 (+482.35%)
Mutual labels:  header
RTHeadedColumnView
Multi-column content with a common header view
Stars: ✭ 12 (-29.41%)
Mutual labels:  header
Vim 42header
vim header for 42 projects
Stars: ✭ 85 (+400%)
Mutual labels:  header
Springview
🔥 A custom view pull to refresh,support ScrollView,ListView,RecyclerView,WebView and all another views, easy to use
Stars: ✭ 1,936 (+11288.24%)
Mutual labels:  header
react-banner
A dynamic banner/header component.
Stars: ✭ 25 (+47.06%)
Mutual labels:  header
42header.vim
Add and update the 42 comment header at the top of your files
Stars: ✭ 15 (-11.76%)
Mutual labels:  header
React Native Stretchy
🤸‍♀️A ReactNative scrollable stretchy header component
Stars: ✭ 216 (+1170.59%)
Mutual labels:  header

VSCode FileHeader

Markeetplace Badge Install Download Size BSD License Badge

中文文档 | 英文文档

This is a header extension that contains multiple languages.

Feel good friends please give a star ~

Install

1. ctrl + shift + x
2. Search VSCodeFileHeader

or

1. ctrl + p
2. ext install jankincai.vscodefileheader

Features

  • Support for automatic update time and author
  • Support for custom template(header/body)
  • Support for multiple languages
  • Support for suffix name mapping templates
  • Support for ignore suffix
  • Support for manual and automatic insert comment
  • Support vscode variables
  • Support remote synchronization(install git)

Example

example

example

More examples

Language

  • ActionScript
  • AppleScript
  • ASP
  • Batch
  • C
  • C#
  • C++
  • Clojire
  • CSS
  • D
  • Dart
  • Erlang
  • Go
  • Haskell
  • HTML
  • Java
  • JavaScript
  • LaTeX
  • Lisp
  • Lua
  • Matlab
  • Objective-C
  • OCaml
  • Pascal
  • Perl
  • PHP
  • Python
  • R
  • Ruby
  • Scala
  • SCSS
  • ShellScript
  • SQL
  • TypeScript
  • Vue
  • XML
  • YAML

Usage

# Settings
{
    "fileheader.author": "JanKinCai",
}

# Save file or ``ctrl + alt + i`` insert comment

Extension Settings

{
    # Set author
    "fileheader.author": "Your name",

    # Set insert body switch, default false
    "fileheader.body": true,

    # Set open file to insert header comment, default false
    "fileheader.open": true,

    # Set save file to insert header comment, default true
    "fileheader.save": true,

    # find max line of header comment, default 10
    "fileheader.header_max_line": 10,

    # Set datetime format, default YYYY-MM-DD HH:mm:ss
    # moment.js
    "fileheader.dateformat": "YYYY-MM-DD HH:mm:ss",

    # Set template mapping
    "fileheader.file_suffix_mapping": {
        ".pyx": "Python",
        "jkc-*.h": "H"
    },

    "fileheader.ignore": [
        "*.txt",             # Ignore suffix name
        "test.py",           # Ignore file
        "test"               # Ignore dir
    ]
}

Custom template(Add Email)

Note: The template header connot be modified and can be added.

Custom Header template template/header/Python.tmpl:

# @Author: {{author}}
# @Date:   {{create_time}}
# @Email:  {{email}}
# @Last Modified by:   {{last_modified_by}}
# @Last Modified time: {{last_modified_time}}

Custom Body template template/body/Python.tmpl:



def main():
    print("Hello, World!")


if __name__ == "__main__":
    main()

Settings:

{
    # Set template path
    "fileheader.custom_template_path": "xxx/template/",
    # Set other config
    "fileheader.other_config": {
        "email": "Your email",
    }
    # Set suffix mapping
    "fileheader.file_suffix_mapping": {
        ".py": "Python"
    },
}

fully modify template (example)

Custom Header template template/header/JKC.tmpl:

# @Name: {{name}}

Custom Header template template/body/JKC.tmpl:

settings:

{
    "fileheader.is_header_exists": "@Name:",
    "fileheader.other_config": {
        "name": "jankincai",
    },
    "fileheader.file_suffix_mapping": {
        ".jkc": "JKC"
    },   
}

vscode variables

https://code.visualstudio.com/docs/editor/variables-reference

Custom Header template template/header/Python.tmpl:

# @Author: {{author}}
# @Date:   {{create_time}}
# @Last Modified by:   {{last_modified_by}}
# @Last Modified time: {{last_modified_time}}
# {{workspaceFolder}}
# {{workspaceFolderBasename}}
# {{file}}
# {{relativeFile}}
# {{relativeFileDirname}}
# {{fileBasename}}
# {{fileBasenameNoExtension}}
# {{fileDirname}}
# {{fileExtname}}
# {{cwd}}

Sync remote template

{
    # Set template path
    "fileheader.custom_template_path": "xxx/template/",

    # set ssh, https://jdblischak.github.io/2014-09-18-chicago/novice/git/05-sshkeys.html
    # "fileheader.remote": "[email protected]:caizhengxin/vscodefileheader.git"

    "fileheader.remote": "https://github.com/caizhengxin/vscodefileheader.git"
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].