resharper "cannot resolve symbol absmiddle" - resolve

I have resharper 5.1. When I analyze "Errors in Solution" I get a lot of the same error in my aspx files. The error is:
cannot resolve symbol 'absmiddle'
It occurs on a line of code like this:
<img src="image.png" align="absmiddle" />
How do I suppress this 'error' so it doesn't come back on when I restart Visual Studio?

In visual studio with resharper:
You should get a lightbulb in the left hand side of the screen when you click on one of these absmiddle attributes.
click on the lightbulb and select the Inspection Options for ... from the list.
In the dialog that comes up, select how you want to treat these errors.
In any case, you should not be using the align tag let alone a value of absmiddle with that tag. Instead, add this to your CSS:
img.absmiddle { vertical-align:middle; }
of couse, you'd need to set the class attribute for the images you want centred to absmiddle.

Related

Close Tag not working in Visual Studio Code

I am trying to close a tag in vscode but an error pops up that says command 'auto-close-tag.closeTag' not found. Anyone knows how to fix this?i am attaching the image for reference.
The issue comes from line 19. As you can see, you have:
<div
That is a syntax error in HTML. All div tags must be closed.
You can fix it like this on line 19:
<div>

i am having problem in my vsCode like when i write .container its is not giving me any suggestion for making a class conainer with div element

What should i do for that i, think there must be any option that i have to turn it, please help me to get out of this....Here you can see
Please Help me to resolve this problem
in my laptop when i installed vs code it works perfectly, but when i installed vscode in my desktop it is not giving me any suggestion to auto complete the tag
like when i write .container then it not giving any suggestion that i can click on it and it will change .container to
You need to modify your setting to get this.
Go to setting (Ctrl + , ) search for "emmet.triggerExpansionOnTab" then select the checkbox.
Now you when you type .container and hit Tab button and you get the results.
You can follow this link for more details: https://code.visualstudio.com/docs/editor/emmet#_using-tab-for-emmet-expansions
Go to VS Code setting type emmet in search
Locate the include language section. Click Add item to enter
item: javascript value: javascriptreact
I also had similar issue and solved using following steps.
Need to change the settings first
for that press Ctrl + , in your keyboard
Then you will get settings window like this image.
Search emmet.triggerExpansionOnTab as shown in image
Then enable by adding tick there
Go to vs code and try it out. ( Plz make sure to press Tab after typing like .example-class-name)

Object Browser / Class Browser for Visual Studio Code

I am just getting started with Visual Studio Code. I am really liking it better than the full Visual Studio, but I was wondering how to show the object browser?
Along the left icon bar where I would expect it to be, all I see is Explorer, Search, Source Control, Run, and Extensions. Then at the bottom are Accounts and Settings.
How do I show the object browser? Is there a setting somewhere, or do I need to install an extension, or what?
I found it.
Just in case anyone is as blind as I am and stumbles across this question:
Under the "Explorer" button on the left. Way down at the bottom there is an "OUTLINE" section. Twirl that open and there it is!
Because I could not find it using the explanation above, I found the Object Browser under the View menu, somewhere at the middle of the list.
Or...you can press CTRL+ALT+J
enter image description here

Eclipse: Edit code parser

I am using a plugin for Eclipse (The Eclipse plugin of SDCC).
This works fine (so far) but the problem is the inline assembly..
it is pretty annoying that the parser marks this code as syntax error
and furthermore that it marks symbols which are defined in a header file.
Therefore I want to extend the plugin a little bit such that the parser(s)
ignore the inline assembly part since the SDCC compiler will complain about it
anyway if it finds an error.
I've seen that there is an error parse since CDT 7.0 but I am not sure if this is
the right place to look at.
Can anyone help?
Place mouse pointer over highlighted code, then press F2 to have focus in popup suggestion window. At left corner of this window exists icon, click on such icon opens problematic item.
By setting/removing checkbox 'Text As', editor with highlighted code will be change view as well.
Usually they are all accessible through Window->Preferences->General->Editors->-Text Editors-> Annotations.
I used it on kepler CDT.

How do I make Dreamweaver to show me closing tags?

I would like Dreamweaver to show me the opening/closing tag when I select a tag. This functionality is seen in many editors, I know for sure Eclipse has it.
To make things clearer: When I select/highlight a <div> opening tag with my mouse I would like Dreamweaver to select/highlight the </div> closing tag.
My main questions:
Does anybody know what this functionality is called?
Does anybody know how to add this functionality to Dreamweaver?
I've tried searching the Dreamweaver extensions on the Adobe exchange but couldn't find what I'm looking for.
Dreamweaver has two different ways of selecting matching tags, depending on whether you're working with HTML or a scripting language.
To select the matching opening and closing tags of an HTML element, click inside the element, and click the Select Parent Tag button in the Coding toolbar. It's the sixth button from the top (I tried to attach a screenshot, but don't yet have sufficient privileges to do so).
To select matching opening and closing curly braces, brackets, or parentheses, click inside the opening or closing symbol, and click the Balance Braces button on the Coding toolbar (it's immediately below Select Parent Tag). Alternatively, use the keyboard shortcut, Ctrl+'/Cmd+'.
well I dont know If Im really giving u a solution but if u select a tag, the code editor will show u (at the end of the window) the tag u are on. If u click on the tag information (same place) then the code-editor will highlight the place in btw the choosen-tag
I have to echo the sentiments of Ahmet Sali in saying that its a shame that Dreamweaver does not support the functionality of highlighting the beginning and end tags. This should be very simple. I became accustomed to this feature in Visual Studio and found it very useful.
I think Dreamweaver doest it better than All other Editors.
You just need to see the Small Vertical Toolbar on the Left of the Line-numbers and search for 'Balance Braces' (highlights between { and } AND 'Select Parent Tag' (Highlights all inside parent-element ).
For HTML Tag Highlighting , again , just see the Small Horizontal bar' on the Bottom (also called Status Bar).
Whenever you select a HTML Tag, it automatically creates its Hierarchy in the shape of Small-Buttons. If you just Click on any Tag (or small-button) , then it highlights that Element upto the Matching Element.
I don't think Dreamweaver has this option. The only way is to just go what David Powers says. You would have to click within the braces and click on the symbol. This would highlight the whole text from beginning of the brace to the end. If it doesn't do anything then that means there no ending or beginning. I'm using both dreamweaver and notepad++ and notepad++ does exactly that.