SSMS 2016 - Text Editor Color Settings - tsql

Anyone could help me to restore default text editor color settings in SSMS 2016?
query
Might it to depend from the fact that "the menu is in Italian and the buttons are in English"? (sorry for the simplification).
Infact, first of all I have run SSMS-Setup-ITA.exe and then SSMS-Setup-ENU.exe.
I click on "Use default" button but it seems not working.
Thank you in advance for your replies.
SQL String

Your sample image shows a SQL statement. So you should use the formatting for SQL String (SQL Stringa) in stead of String. That should work.

Ribbon Window -> reset window layout.

Related

Visual Studio Code output pane document updated message - disable

How can I disable these messages? Removing the Output windows from the view settings (right click) doesn't provide a fix.
From the drop down which in the screenshot says css-peek select Tasks or something else, that panel is for Output from all sorts of plugins and extensions in VSCode, it will help you understand if something is wrong with those plugins/extensions.

How do I select all text in vistual studio code?

In visual studio code (1.29.1) ctrl+a doesn't do anything for me. I checked keyboard shortcuts and it's mapped to a few select all actions (editor.action.selectAll, etc.) but when I'm in a file and press it nothing happens. How do I select all text in the current file in visual studio code?
Thanks for the comments, it make me realize it must be an environmental issue. Turns out if you have any mapping starting with a key combination that will lock that mapping to the key combo and you can't use it for anything else.
To make save all ctrl+shift+s I had to re-map save as and I mapped it to ctrl+a+s, so everytime I hit ctrl+a it just waiting for second key. In the status bar at the bottom of my editor it said something like "Ctrl+a detected, waiting for second keystroke", which means Ctrl+a won't work on its own. I re-mapped Save As to some unused key combo and it fixed select all.
This question was luckily answered on another thread
I'll post the OG answer here, nonetheless.
Most new comers to VS-Code could resolve this issue with the 2nd method provided by the OG answer:
Goto File > Preferences > Keyboard Shortcuts
in the search bar type this Select All
There's should a couple of results, you'll obviously want the "Select All" result
right click on his line and click on Change When Expression
a textbox would be highlight for you to fill in text. type editorFocus
press enter and done!
The OG answer provides image if you need to confirm that you're doing it right.
side-note: This issue bugged for more than 3 years and is the main reason my I used VS-Community over VS-Code.
So it's nice to finally be able to work normally in this very robust customizable IDE text-editor.

How to hide/view result grid in MySQL Workbench?

I'm using MySQL Workbench on Windows. I execute a query and I get the result. Is there any option or a hotkey to hide/view the result grid without executing the query again and again?
Please help me on this.
Here is a simple technique to get back the results grid in MySql WorkBench.
Place the text cursor on a query and use the "EXPLAIN command" for the statement under the cursor.
That will open the Visual Explain window. In that window you can find Results Grid. Click on that Results Grid.
You can see the result grid again.
There's a bug in current latest (8.0.11) MySQL Workbench when for some reason it's no longer showing Results Grid when you execute your statements. The only reasonable way to fix this that I found was to close the app completely and reopen it.
You can close result tab this way
I think there is a bug in latest (8.0.11) MySQL Workbench regarding result grid view. Since the installation I was not able to see Result Grid window for any query but I have some how able to get result grid window by changing Resultset Grid font from Tomaha (default with installation) to Consolas 10 and then executing one query.
Hope this might help others facing same issue on 8.0.11 version till the permanent fix.
Updating MySQL workbench worked for me. I'm on MacOSX
This isn't the best solution, but it is a work-around:
I have MySQL Workbench version 8.0.18 and when I run a query my result grid disappears too. However, I noticed that you can have another tab open (within MySQL Workbench) where the result grid for the same table remains open, and then you can toggle between the two tabs (the query tab and the result grid tab) by using CTRL + TAB and CTRL + SHIFT + TAB.
(Other tab toggle options are here: How to manage the SQL tabs in MySQL Workbench?)
However, the caveat is that you have to keep refreshing the table's contents in the tab that has the result grid.
(In order to open a new tab you can use CTRL + T, and then click the database and table you wish to view.)
I had the same problem with MySQL Workbench 8.0.19 (Win) and could not get the Result Grid to show whatever I did. I changed the font like some of the other examples but that didn't work. I clicked the EXPLAIN button to see the Execution Plan and that didn't work either. The Result Grid kept going away.
I finally clicked the EXPLAIN button to show the Execution Plan, clicked on the Result Grid icon above that on the right, and then shut down MySQL Workbench hoping it would save the current view settings in a config file or in the registry. That seemed to work. When I opened MySQL Workbench again, the Result Grid appears and I am back to normal.
UPDATE:
I wrote too soon as that didn't have permanence. I did a little more research and found this article in the developer site of MySQL documentation.
https://dev.mysql.com/doc/workbench/en/wb-configuring-files.html
So, I decided to shut down MySQL Workbench, rename the 'wb_state.xml' file to 'wb_state-backup.xml' as found in the following path on Windows.
C:\Users{username}\AppData\Roaming\MySQL\Workbench
I then started MySQL Workbench and saw that the 'wb_state.xml' file was created on startup. I then ran a quick SELECT statement to see if I would see the Result Grid and it showed up.
I hope this works for some of you as well!

How to wrap words/lines in NetBeans IDE 6.9.1?

I searched for "wrap" in keyboard mappings without success. I don't see this option in menu neither.
EDIT: I was thinking about result the you get let's say in Notepad2 by pressing Ctrl+W (or selecting View -> Word Wrap). So I'am asking about toggling such Word Wrap
In Tools->Options there is a whole section on line wrapping. The options you choose here will depend on how you need to do the wrapping - it is quite configurable.
Go to Tools->Options.
Click on Editor in the ribbon at the top.
Choose the formatting tab.
Choose the language you require the wrapping for it the Language combobox.
In the Category, choose Wrapping.
Configure how you would like the wrapping to take place.
Hope this helps...
Stolen from Sidarta's tip in this SO post:
You can use word wrap in Netbeans.
Add to netbeans.conf
(netbans_instalation_path/etc/netbeans.conf):
-J-Dorg.netbeans.editor.linewrap=true and restart Netbeans.
In Options->Editor->Formating there is
Line Wrap dropdown option
Works fine for me in Netbeans 6.9
Are you talking about "soft wrapping"? That is, there are no line breaks inserted into the text file, but each line is wrapped to fit in the editor window?
NetBeans doesn't support that. Hard to believe, I know. I think it might be coming in the 7.0 version, I'm not sure.
Since Netbeans 7, word wrap is available. See this blog for directions:
Netbeans & Wordwarp
As Daniel says, after Netbeans 7 this is possible. Just go to your NetBeans options and select the editor tab. In languages (dropdown) selection choose "all languages". Then you will see the option Line Wrap. Change it to "After Words" or "Anywhere".
Go to toolbar-> option ->Editor(Tab)
view this picture..
soft wrap in netbean
select your line wrap 'after words' .
after apply these settings. you will see the code responsive way. you don't need to scroll horizontal to see code.view the picture for resutl.
soft wrap in netbean

Removing text in the banner in a Windows Installer project

I'm using the standard Visual Studio deployment project and want to remove the text in the banner (the text that says "Welcome to the Your Project Setup Wizard".
I want to remove it because I want a custom banner and don't want the text written over the banner.
I can't see any properties in VS to allow this. Can it be done without prodding around in the .MSI?
Cheers,
Steve
You can "remove" the text by removing the Welcome dialog and replacing it with a custom dialog. In VS 2005 -
Right click on the Setup project in the solution explorer
Select View - User Interface
Under the Start group for Install and Administrative Install delete "Welcome"
Then you can add a "Textboxes (A)" dialog (right click the "Start" group and select Add Dialog) to the project, set the visible property for the text boxes to false. Move the Textboxes (A) up to the top of the "Start" sequence.
The properties for this dialog include:
BannerBitmap
BannerText
BodyText
This should allow you to control the look / feel (to a certain extent) of this new "Welcome" page.
I'd just like to add to this that sometimes creating a custom dialog is a pain in the rear and that you can follow the advice at http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/5af7ff28-3dbb-4a8a-8d62-a09af9e32b29 to use a tool called InstEdit (http://www.instedit.com -- there is a free version) to edit the outputted installer and remove the BannerText
I don't believe there is an easy way (e.g. changing a property). I had the same problem recently. I couldn't find anything. Ended up using Orca to "prod around in the .msi". It seems the only thing you can alter easily is the language it's displayed in.