Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
auto-capitalizing keywords like SELECT, FROM, etc. #337
Steps to reproduce this issue
I can see exactly what I typed:
I would like to see capitalised keywords:
Under Tools -> Preferences -> SQL, where I can set the colors and other attributes the of individual content categories, I would like to have a checkbox "[X] Capitalized". I would love to turn it on for Reserver Words.
Version 184.108.40.20677 (64 Bit)
Thanks for the quick asnwer. :)
I don't think they are the same.
Yes, I noticed your wish is different, only I don't want to implement similar things two times.
There is a second way to accomplish that: start typing "sel", press Ctrl+Space, which should offer the completion proposal with the
I understand this but I still think it would be a very useful feature because Ctrl+Space is much less convenient.
For example, when I type "from" then Ctrl+Space offers three options:
Unfortunately I cannot use Heidi at my workplace and I have to use SequelPro for Mac which does this autoformat thing. I don't reallt like SequelPro but this is a feature of it I really love and would love it in Heidi as well.
UPDATE: just one more tought. There are three different things but they have different purposes as well:
So, my suggestion would not implement the same functionality that we have somewhere else. It is a new feature.
added a commit
Sep 2, 2018
Oh, great news, thank. :)
I installed Version 220.127.116.1193 (64 Bit) and works nice. Thanks. :)
However, it is not exactly what I asked for. I thought you implement it more similarly to the syntax highlighting. I expected a checkbox where the Bold and the Itcalic checkboxes are. That implementation whould make it possible for the user to capitalize/not capitalize function names, keywords, tablenames, independently from each other. I think it would be more felixible.
There is one more think. It is a bit strange that I type "select" and right after "t" the color is changing but the capitalization happens only one character later, when the space also is pressed. Is this indented? Why does it indicate to be a keyword by color change earlier than it indicates the same thing by capitalizing?
I would like to request a little bit more intelligence too
SELECT t.NAME FROM mytable t
But I expect
SELECT t.name FROM mytable t
Essentially, coulmn names can be reserved words but shouldn't be automatically capaitalized.