format dollar chracter for javascript files in visual studio 2013 - visual-studio-2013

Im learning angular and it would be nice if i could have $ the dollar sign, formatted so its maybe red since it would make reading angularjs code much easier.I am using visual studio 2013.
To recap.I want the dollar symbol in javascript files to be of color red.

Since this isn't really a question, add your suggestion/request to http://visualstudio.uservoice.com.
If you want to implement this yourself you would need to create your own intellisense settings for JavaScript, which I'd suspect is something you probably don't want to do.

Related

codeigniter with visual studio code - How to lookup translation strings while coding

I'm developing with Visual Studio Code a codeigniter project and there are several parts across the code that reference strings defined inside the application/language/ folder for each translation.
Currently when I encounter something like echo lang("ctn_1") I have no idea what the ctn_1 string says so I need to open the language definition file and look for $lang['ctn_1'] = "Email Address";
I imagine there is a better way (wishing for a plugin in that lets me just hover over lang("ctn_1") and shows "Email Address" as a tool tip).
Any advice on how to make me more efficient around this?

Dim/hide logging lines of code in Visual Studio

Is there any way to make visual studio dim or hide/show on demand logging lines of my code?
We use a lot of logging in our project and it's harder to read code like this.
I would like it to be like this, for example:
Unobtrusive Code extension worked for me for Visual Studio 2019. It dims the opacity of log lines (and comments, which I disabled - I enjoy reading my comments). He did a quick update for the nuget package, and it works great.
https://marketplace.visualstudio.com/items?itemName=niklaskallander.UnobtrusiveCode
I use this. Hoping one day they will add color customization and line selection regex options as well:
https://marketplace.visualstudio.com/items?itemName=ElmarXCV.GrayLogLines
There is no way to do this from the standard Visual Studio IDE. In order to do this you would need to define a custom extension which recognized lines like this, tagged them with a specific format and have that format be colored a lighter color in the IDE
a "hackier" way would be to wrap all logging in a preprocessor directive like
#if DEBUG
Log.Info(........)
#endif
Visual-Studio will "dim" the code inside.
and have some kind of config header where you
#define DEBUG 0
Not the prettiest but its nice if you don't want debug code compiled into your Release binary
why don't you put your section within #region tag.
E.G:
#region Put some region name here for your reference
Your Code / Comment / Whatever
#endregion

Zen coding support for CSS in Web Essentials 2012 for Visual Studio

i'Ve installed web essentials 2012 for VS2012.
But it seems it doesen't support zen coding for css??
or am i missing something??
please help..
thanks.
Web Essentials only supports ZenCoding for HTML. I decided to wait with the CSS implementation because of the CSS editors rich Intellisense and snippet support. They would most likely conflict with ZenCoding
Here's a sample to try :
h1{Good Example}#test.classname+#sibling1{div sibling1 text}+#sibling2{div sibling2 text}+h2{header2 text}+ul>li>a[href="http://stackoverflow.com"]{stackoverflow link}^li>a[href="http://codeproject.com"]{codeproject link}
Hit [TAB] Key to Expand
Remember to hit [tab] key after typing the sample, to expand the zen code to real HTML.
The sample above will expand to the following:
It will render in the browser to look like this:

Styles - Visual Studio code fragment, copy & paste Outlook (HTML) - retain styling?

I'm a fan of the Son of Obsidian Visual Studio style (white/color letters on dark-gray background).
It's also great that Outlook attempts to retain syntax highlighting, however I use the white default background in Outlook. The result is that I need to either strip all syntax highlighting on code fragments I email to coworkers, or set the background color of the email darker.
I've tried out the Copy As HTML plugin, however this didn't override the background color for the code fragment in Outlook.
Has anyone figured out a good solution for this kind of workflow?
Hello this is really a late reply :
I use the same theme.
You can refer to this article for the general steps.
http://codinglifestyle.wordpress.com/2013/05/17/copy-and-paste-formatting-with-visual-studios-dark-theme/
The article though tells how to do the opposite of what we want so instead i came out with this :
<style type=”text/css”>pre{background:#344042 !important}</style><pre>
and this does pretty much the job.

Embed image in code with Visual Studio

I remember reading once that there was a way to embed an image into a code file (e.g. a screenshot or diagram) in Visual Studio, but now I can't find any reference to that feature.
Is this possible to do, or am I imagining things?
EDIT: I don't mean embed the image in the executable, for use at runtime. I mean link or embed it literally in the code, for use by developers.
There is a plug-in for VS 2010 that can do this:
Plug-in
There is also a plugin for VS2012 and VS2013. At this moment installing for VS2013 does not seem to work for me though.
ImageComments extension on GitHub
You can embed images in your binary through the use of the ImageList control, which is typically used to store small icons for list controls, gridviews, etc., but could also be used for storing really any image for any purpose. A better solution would be to include a resource file and store your images there.

Resources