"Surround selection on typing quote or brace:" not working - goland

There is something in Goland settings that is annoying me. I have this settings with the option "Surround selection on typing quote or brace"
So if I am in this state with a selected text:
This is what happens when I type " ' ":
The selected text is gone and I have a ' with an underscore.
However with {} is working fine:
What is wrong in my settings?
Thanks in advance.

It is a problem related with the keyboard layout. In my particular case I was using "US. International" and caused it to fail. Using "US" layout fixes that bug.

Related

Dropdown property in AppMaker not working

I am trying to dynamically change the nullItemName property of a Dropdown in Google AppMaker. However, it seems to be ignoring it. Here is my code and log results:
console.log('DEBUG before nullItemName ' + widget.nullItemName);
widget.nullItemName = 'test';
console.log('DEBUG after nullItemName ' + widget.nullItemName);
DEBUG before nullItemName No selection
DEBUG before nullItemName test
So it appears to work, but the widget still shows "No selection".
Is there something else I have to do? Or could this be a bug?
Thanks for any tips or pointers.
Seems like a bug. I've created an issue to track it.
Thanks for the report.

setSeparator doesnt work for the QAction in qtitanribbon

I hit an issue in case of adding separators in the RibbonGroup in case of the following scenario:
Create an action,
Add to the RibbonGroup,
Set action as a separator (QAction::setSeparator(true))
Actually, the separator appears as dummy text.
Are there any way to solve this problem ?
Thanks,

vs2010 - shortcut for surrounding a String by double quotes

I used to work with a developer who, selects a text in aspx page and applies a keyboard shortcut to enclose it in double quotes.
Eg: runat=server. when i select server and press ctrl+somekey, it should be runat="server"
Could someone tell me what is the keyboard shortcut, i tried googling a lot, but couldnt find one..
Currently we are overhauling a page, and need this badly...
Thanks in advance.
As far as I know this is a setting in Visual Studio which enables you to immediatelly place quotes when you type attribute and press equals sign or if you type a few letter and press CTRL+Space. This will autocomplete the attribute and place quotes. In order to enable the quotes click on Tools then Options. If it is not checked, check Show all settings. Expand Text Editor, then HTML and click on Formatting. On the right side enable Insert attribute values quote when typing and Insert attribute value quotes when formatting
Format selection: ctrl+k, ctrl+f
I also have Tools > Options > HTML > Formatting > Insert attribute value quotes when formatting checked.
I think you should try this with the replace function
search : runat=server
replace: runat="server"
The developer may have been using a refactoring tool such as CodeRush or Resharper. Have a look at this link for how you may be able to do something similar without extra tools.

Is it possible to insert a code snippet inside the ASP.NET <% %> tag using a shortcut?

The regular way (typing the shortcut followed by the Tab key) doesn't seem to work. If not, maybe there's some other way of inserting snippets not using the mouse, with as few keystrokes as possible? What language should be specified in the "language" attribute of the "Code" element in the .snippet file? I use VS2010.
To get the snippet menu you can use CTRL+K, CTRL+X then select the snippet you want. I don't have any problem using shortcut followed by TAB so it could be a change to your settings that is stopping it. As far as language goes the snippet menu shows snippets based on the language of your code file. You may find it useful to use a snippet editor like Snippet Editor if you are creating your own snippets.
I found out today that pressing TAB twice works OK if I type the snippet shortcut after the new keyword, so I changed the snippet code from "new AjaxOptions {UpdateTargetId = "page", OnFailure = "handleFailure", ... }" to "AjaxOptions {UpdateTargetId = "page", OnFailure = "handleFailure", ... }", and everything seems to work fine now.

next/previous word in flex builder

The felx builder (on eclipse) next/previous word command, usually bound to CTRL-RIGHTARROW on OPTION-RIGHTARROW on the mac, doesn't stop for ":" and "." and in a few other cases.
It's clearly a wrong behaviour for action script development!
How can I change it?
Here is the fix:
http://www.visible-form.com/blog/mac-eclipse-word-boundary-issue-fix/
"Go to System Preferences > Language & Text > Text, and set the ‘Word Break’ dropdown to ‘English, United States (Computer)’."
Remember Quit Flex Builder and restart it. If this doesn't work, try restarting the OS.
This option is missing in Mavericks… you can fix it with:
defaults write .GlobalPreferences AppleTextBreakLocale en_US_POSIX

Resources