Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Code indentation setting #615

Closed
ggarek opened this issue Apr 21, 2016 · 3 comments
Closed

Feature Request: Code indentation setting #615

ggarek opened this issue Apr 21, 2016 · 3 comments

Comments

@ggarek
Copy link

ggarek commented Apr 21, 2016

Hey,

I would like to say, that if there was a possibility to change code indentation for project scripts it would be awesome! (e.g.: spaces vs tabs; number of spaces)

p.s.: Just wondering if you accept feature requests and if it is good idea to do it via github issues.

Thanks!

@nantas
Copy link
Contributor

nantas commented Apr 22, 2016

Hi,

The builtin code editor is just for quick edit and should not be used as working environment. We'll not going to add feature to that since our focus is Visual Studio Code. And it's easy to customize code indentation along with hundreds of other settings in VS Code.

All feature request is welcome! You can either post them here or post them to our international forum:
http://discuss.cocos2d-x.org/c/editors-and-tools/cocos-creator

@ggarek
Copy link
Author

ggarek commented Apr 22, 2016

Good to know, that you accept feature requests! Thanks.

Regarding the code indentation. It is not what i meant, let me put it this way. I do not use builtin editor, i use vscode. What i meant saying about indentation is an initial code generation. When you create a script file in the Cocos Creator it generates default code and there is no way to change the indentation of generated template in Cocos Creator. It may become more inconvenient if there will be more code templates.

Anyways, it is very minor thing.

p.s.: But if you could use .editorconfig for code generation it would be awesome ;)

@jareguo
Copy link
Contributor

jareguo commented Apr 22, 2018

Hi, you can editor the default code in CocosCreator.app/Contents/Resources/static/template/new-script.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants