Giter Site home page Giter Site logo

hide-my-code's Introduction

hide-my-code README

·我有些代码想隐藏起来,老有人站我后面,我不想让他看!

·我有些代码想隐藏起来,但是折叠满足不了,比如一些特殊格式的注释!

·我有些代码想隐藏起来,只是隐藏,源代码不用改变!

pick me

example

example1 example1 example1

配置方法

将想要隐藏的代码当成字符串,并放在hideList字段中,支持正则:

// setting.json
// 配置项:
"hide-my-code":{
    // 匹配到的会被隐藏起来
    "hideList": [
        "//( )?#ifdef MP-H5(.|[\r\n])*?// #( )?endif",
        "<!-- #ifdef MP-H5 -->(.|[\r\n])*?<!-- #endif -->",
    ],
    // 遮罩的颜色
    "bgColor":"green",
    // 此处可配置其他的属性
    "style":{
        "after": {
			"contentText": "代码隐藏中,请勿删除!",
			"color": "red",
			"border": "1px solid red"
		}
    }
}

使用方法

命令行执行:(command+shift+p -> 输入下面的命令 -> 回车 )

hide-my-code / 显示或隐藏我的代码

hide-my-code's People

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.