Added .editorconfig for define and fix code style

Added .editorconfig for define and fix code style