"Complete current statement" for javascript behaves differently in different projects.
Stupid problem, but this drives me crazy.
Ctrl + Shift + Enter is deeply in my muscle memory and i always use it to complete javascript statements with ";"
In most of my projects it works this way. now i have two new projects build with quasar.io but here Ctrl + Shift + Enter just introduce a new line without ";"
I can't figure out why it is this way and how to fix. I also wonder how it can be that shortcuts behave different in different projects.
Any hints? Thanks.
Please sign in to leave a comment.
What file type this is happening in? Do you have an example that we can test on our ends?
It happens in js, ts and in the script part of vue files.
I have two projects open. One is more or less the file-by-file copy-paste clone of the other.
So files are more or less the same in both projects. In one project "Ctrl+Shift+Enter" within a js statement jumps to the end and sets ";" (as expected). In the other projekt shortcut appends just new line to statement. (without ";") and sets cursor into new line.
So its not a matter of some specific files. Problem occurs project-wide. So there must be some switch to change shortcut-behavour between projects.
Btw.: Same shortcut within objects works fine by adding comma to the end of attr-value pair.
finally found it. No idea why configuration changed between projects. may have to do with initializing the project by quasar cli.
could you clarify what you have found? Is it Use semicolon option that makes it behave in a different way?
To make clear: there is no bug.
It was just hard to find correct configuration for my needs.
At the part that is shown i had different configurations for different projects and therefor different behavour.
But what i wonder in deed is why i have different configuration of my projects at all.
> what i wonder in deed is why i have different configuration of my projects at all.
Can be a result of auto-importing code style preferences from linters configs, for example...