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

Troubles with code tabulations #14

Open
aleksandrAndrosov opened this issue Feb 28, 2019 · 3 comments
Open

Troubles with code tabulations #14

aleksandrAndrosov opened this issue Feb 28, 2019 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@aleksandrAndrosov
Copy link

When you write a function, if, for etc and you finish it with end statement, no formatting of code inside of this construction happens

@aleksandrAndrosov
Copy link
Author

also, maybe auto complete would be cool

@reeFridge
Copy link
Member

Yeah, thanks for the report. I am trying to decide what behavior would be better

  1. End statement auto injects after complete "head" statement (Function foo(), Sub foo() etc.)
function foo() | end function
  1. End statement auto injects to the next line after user typed \n (e.g. new line) and caret move into statement's body
function foo()
->|
end function 

@aleksandrAndrosov What you think about this solutions?

Also autocomplete included in our road-map but with lower priority

@reeFridge reeFridge added the enhancement New feature or request label Mar 2, 2019
@reeFridge reeFridge self-assigned this Mar 2, 2019
@aleksandrAndrosov
Copy link
Author

As for me, second behaviour is more attractive.

There is also another part of issue "When you write a function, if, for etc and you finish it with end statement, no formatting of code inside of this construction happens"
I mean, if you were writing lots of code inside of function and it wasn't formatted, in javascript you can delete the ending "}" of function and then return it and all of the code inside turns formatted with tabulations, spaces or whatever.

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

No branches or pull requests

2 participants