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

New > Elixir File should underscore file name #19

Closed
KronicDeth opened this issue Oct 16, 2014 · 0 comments · Fixed by #111
Closed

New > Elixir File should underscore file name #19

KronicDeth opened this issue Oct 16, 2014 · 0 comments · Fixed by #111
Assignees
Milestone

Comments

@KronicDeth
Copy link
Owner

The current version of New > Elixir File, as so nicely provided by @abaire, doesn't differentiate between the File name and the Module name, so if you enter a Module name of Foo, the file is named Foo.ex, but Elixir convention is for the file name to be lowercase and underscored, so ExUnit Module name becomes ex_unit.ex. I tried debugging the Action and I'm not sure if using the CreateFileFromTemplateAction allows us to have a different File name and Module name since there is only one NAME attribute passed into the template. I may be possible to look at how the Package and Class creation actions work for Java and see if its possible to set the Module name as the PACKAGE_NAME or CLASS_NAME attribute and have the file name derived from that for the NAME attribute.

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