How to Disable Peek Definition and Preview Tab in Visual Studio

I Ctrl+click in Visual Studio all the time, and starting with Visual Studio 2013, I encountered Peek Definition and immediately found I was constantly clicking to “Promote to Document” because the Peek window is just too small for my liking. Visual Studio also opens new tabs in the Preview Tab area, instead of opening it as a normal tab. I personally didn’t like either of these features, so I began the search to turn them off. Peek Definition What is Peek Definition? It’s a small window that opens within your code and allows you to view or edit code in another file without opening a new tab. Here’s what it looks like: I believe Productivity Power Tools is the extension that makes Ctrl+click open a file in Peek Definition, so since many use that extension, I’m sure many (including yourself) set out on this same journey to obliterate this “feature.” In previous versions of Visual Studio, I was used to just Ctrl clicking on a class, and it would open the class’ definition file in a new tab. That’s easy and shows me what I need in a full size window. I get it – Peek Definition allows you to quickly see information about the class without switching tabs, but I so often end up changing or copying something, I just like it to open in its own tab. The Fix You might wade through the settings in Visual Studio. What a mess. I mean, it’s great that you can customize the software in such a fine-tuned way, but my goodness – there is a setting for everything! It was really difficult to find out how to disable Peek Definition. You can turn off Peek Definition by disabling this option: Tools > Options > Productivity Power Tools > General > Control click shows definitions in Peek Yay! But wait… now when I Ctrl+click a class, the file is opening a tab on the right side of Visual Studio, rather than with my other tabs! Introducing the Preview Tab. Preview Tab The Preview Tab allows you to preview a file without actually opening it in the tab well. It’s still opening a tab, just in a different area than the rest of my tabs. It just seemed odd to me, so I wanted it off. The Fix You can turn off use of the Preview Tab feature by disabling this option: Tools > Options > Environment > Tabs and Windows > Allow new files to be opened in the preview tab Now, finally, Visual Studio was back to how I like it: Ctrl+click simply opens the class definition in a new tab just like the rest of my tabs! Your Turn! How about you? Do you use either of these features? Why do you like or dislike them? Let’s discuss in the comments below!

How to Use Multiple Facebook Pixels on One Site

Can you use multiple Facebook pixels on one site? The short answer is: yes! This was a frustrating problem! Facebook doesn’t provide any documentation about using more than one pixel on a single site. This is hard to believe, as I imagine many businesses work with multiple digital marketing vendors who provide Facebook ad services. From the looks of the many unanswered questions in Facebook’s help forum about this, it’s obvious many are frustrated along with me.

Why am I seeing rel=”noopener noreferrer” in my WordPress links?

As of WordPress 4.7.4, when you include a link in a post that opens in a new tab, WordPress will automatically modify the link to include the following rel attribute: <a href="" target="_blank" rel="noopener noreferrer">Google</a> With the rel attribute set this way, the site you browse to will not receive the Referrer in the header of your request. That means any tracking they are doing, like through Google Analytics, will not display your website as being a referring site. You may depend on external sites seeing your domain in their analytics to prove value or popularity or something, so you may not want this new functionality in 4.7.4.

Why won’t a custom jQuery Validation method run on an input element using KendoUI?

In our web application, forms are generated by ASP.NET MVC, which uses jQuery Validation and Unobtrusive Validation. I was recently working on a form we use in our own web application, and we planned to integrate on an external website via AJAX. There is a select menu in the form that allows the user to select from a list of items, and it has KendoUI’s MultiSelect plugin applied to it. The form worked just fine when used on our primary site, but when I used this form on an external site (making sure to include all necessary JavaScript), a custom validation method we add on page load to that one select menu absolutely would not run. Can you guess what caused this?

Debug a Website in iOS Safari on Windows

Have you ever needed to debug a website (especially JavaScript) in Safari on an iOS device but didn’t have a Mac handy? I ran into this problem today, and after hours of trying other ways to debug, I finally discovered a pretty easy way to load up a debug interface on my Windows 10 machine that displayed debug info about a website in Safari on an iPad Mini.