replace all selected json objects with a different object - json

I am using visual studio code Version 1.19.3, and I have 174 occurrences of a specific json object which I would like to replace with a different object. Is there an easy way to do this in visual studio code? find and replace doesn't work because of the tabs.

You can search and replace tabs in vscode but perhaps you have your tabs converted to spaces as your default indentation. If you try Ctrl-Shift-P and "Convert Indentation to Tabs" then search and replace for \t will work as you expect (with the Use Regular Expression button clicked).
Then you could back to indentation with spaces by Ctrl-Shift-P and "Convert Indentation to Spaces" if you wish when you are done.

Related

How to turn off bracket autocompletion in HTML in VSCode?

In Visual Studio Code, in HTML mode, when I type in a square bracket ([) and then an alphabet ([s), the editor displays autocompletion for <div s="|">|</div>.
In other words, the bracket ([) followed by a character tries to autocomplete a <div> element with the given attribute.
I don't want to have this feature, since it slows down my typing as I am trying to write articles for some JavaScript internals that heavily use things like [[Prototype]], [[Writable]] and so on.
Is there any way to turn this feature off in HTML?
As per the docs you can use this setting:
"emmet.showExpandedAbbreviation": "never"

Replace characters by key binding in sublime text 2

How to write a key binding to replace specific character to another one?
For example I want to replace "[" and "]" to empty string "".
Unfortunately, to make a custom key binding you would need to write a plugin in Python to do the finding and replacing, as there are no built-in commands for doing so. However, what you want to do is easily accomplished using the Find -> Replace... dialog. Make sure the regular expressions button is selected, then put \[|\] in the Find What: box, and nothing in the Replace With: box (it's best to put your cursor in there and delete everything, just in case there are invisible characters such as spaces or tabs there). Hit Replace to replace characters one at a time, or Replace All to replace all of them in one go.

Converting spaces to tabs in multiple files Sublime Text 2

Is there any way to convert all spaces to tabs, not file by file?
If I open a file and go through View => Indentation => Convert Indentation to Tabs, it only changes this file. I want to convert indentations to tabs in a whole project.
Use search and replace in multiple files to convert n spaces to tabs in select files.
First open find in files panel, cmd + shift + f, by default to find and replace in multiple files. Next define a regular expression to match spaces as tabs eg {4} (make sure you set Regular Expressions in the panel) for 4 spaces and replace with \t in desired files. Change {4} to however many spaces are being used for indentation.
As mentioned in comments to match spaces at the start of a line you can use the regexp ^( {4})+

SSRS how to render HTML escaped character

I am trying to render a column which has lots of HTML escaped characters, such as &#0945 for alpha, &#0946 for beta. I use SSRS 2012's placeholder property to render it as HTML markup type. This feature looks like only works with HMTL tags, not escaped characters.
Any feedback appreciated.
Right-click on the non-design surface of your report and click Report Properties.... Click the References option, click Add in Add or remove assemblies and add System.Web from the .NET options.
Click the Code option and add the following code:
Function Decode(ByVal EncodedString AS String) AS String
Return System.Web.HttpUtility.HTMLDecode(EncodedString)
End Function
For your field value, use the expression:
=Code.Decode(Fields!MyField.Value)

Format Code In MonoDevelop

I am using MonoDevelop on Mac to write MonoTouch apps. Automatica code indenting/formatting works great while I am typing.
The problem is that when I copy and paste code snippets, in many cases I lose the formatting and lines are combined together, indenting is lost, and it is a huge pain to implement the tabs, spacing, and line breaks manually. Is there anyway I can use a command in monoDevelop to automatically indent and apply the formatting to existing code.
I thought maybe Edit|Format|Format Document/Selection would work, but these commands don't have any affect on the code at all.
Any help?
To format the entire document in one keystroke: control-I
To format a selection: Edit->Format->Format Selection
To customize the formatting: MonoDevelop->Preferences->Source Code->Code Formatting
You actually need to select all your text, and then go to Edit->Format->Format Document. It doesn't seem to work otherwise.
For me on macOS, the shortcut for "auto-format" is CTRL + i.
You can change the shortcut if you want. To change it, go to Preferences -> Key Bindings, then type "format" in the search box and edit the "Format Document" shortcut/key binding.