Code Monkey home page Code Monkey logo

codeformatter's Introduction

代码缩进格式化工具 JAVA实现

使用说明:
代码格式化模式一为K&R格式,模式二为Allman格式(使用模式一输入数字1即可,使用模式二输入数字2即可)
程序说明
Main函数 里面主要涉及了一些程序视图层的内容,以及IO流初始化的内容
CodeFormat1函数 K&R格式处理函数
CodeFormat2函数 Allman格式处理函数
备注:CodeFormat1函数和CodeFormat2函数主要内容是相同的,唯一的区别是在'{'处理上有所不同。
演示图片
格式化处理前
格式化处理前
格式化处理后
格式化处理后

codeformatter's People

Contributors

hengzhe-zhang 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.