Aptana Studio 3 - Browse/Read-only mode - aptana

Aptana Studio 3:
Two simple questions...
From Project Explorer:
How do you open the HTML editor in browse/read-only mode?
Why doesn't the "*" disappear in the HTML editor if there are no more undo's?

Aptana Studio (as well as Eclipse) opens files in read-only mode when files are read-only on a filesystem. "*" (star) at the editor tab means file has been modified since opening and on close you will be prompted to either save or close w/o saving.
Cheers,
Max

Related

Vetur change formatting 2 spaces to 4 spaces in Visual Studio Core

Developing in VueJS 3 CLI and added the Vetur extension for support. Found several references to change the indent settings in the Vetur config file but have no clue where the location of this file might be on my machine.
Turns out that if you open Extensions in Visual Studio Core, find the Vetur listing, in the lower right corner of the reference there is a sprocket icon for Settings (see screen shot below). Click on this icon and that will open a dropdown dialog with the Extension Setting option, then click to open the Settings file (#ext:octref.vetur) in VS Core tab that lists all of the formatters and the configuration option for changing Indent from 2 spaces.

Can't open .css file with Visual Studio Commuinity 2017

I'm doing Bob Tabors HTML5 & CSS3 course and in the course he only uses Editor and Internet Explorer. I thought that it would be a bit more convinient if I use Visual Studio to code. The problem, I can't open a .css file directly. I can open it in Visual Studio and it behaves like a normal .css file, but when i try to set the "Always open with" to the devenv.exe it says that the file can't be opened with that programm. .html, .cs and .js all work when I try to open them with the devenv.exe.
Thanks to the advice from #Ivaylo Slavov , I just decided to download Visual Studio Code. Seems to be a faster solution for editing .html and .css files.

Open .aspx file in two windows in Visual Studio 2013

I am trying to open the source view of one large .aspx file in two separate windows/tabs in Visual Studio 2013. The "Window > New Window" option is greyed out for this file type.
I am able to do this with other file types including .cs, .css, .js, etc.
I have tried the suggestions in Open two instances of a file in single Visual Studio session including the registry edit and the custom keyboard shortcut without success. Is there a specific registry hack or some other solution for .aspx files?
Just to clarify, I am not looking to "split" the file. My end goal is to have two copies of the file open in different vertical tab groups.
It is not supported for .aspx files. You can enable the New Window command setting HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0_Config\Languages\Language Services\HTML\Single Code Window Only=0, but opening the second window gives you a blank view.

Can I use Sublime to edit CSS files within a Visual Studio 2010 project

Is there a way to automatically launch Sublime from within Visual Studio 2010, for example, every time I click open a CSS file? I need all the source control functionality to remain intact - I just want to change which editor gets used for a few filetypes within VS / TFS projects. Is this possible?
Right click the file, select "open with...", add sublime as an editor, click set default.
You'll probably need to right click checkout/checkin manually in visual studio still. This functionality is a lot nicer in tfs2012/vs2012 when using local workspaces as files are no longer marked as readonly.

How to force Visual Studio to honor the BOM at the start of a UTF-8 encoded CSS file?

Apparently, when Visual Studio 2008 (SP1) opens a CSS file, it doesn't recognize the UTF8 BOM marker as a BOM, but instead interprets it as text (first three characters show up as , but shouldn't be visible). While VS normally doesn't save the CSS files with a BOM, I'd expect the IDE to recognize and respect the BOM when it's there.
This may be a bug with Visual Studio, however, does anyone know a workaround?
This appeared to be a bug in Visual Studio 2008 SP1. Once it misinterprets the CSS file, it will continue misinterpreting it. Signs on the sand were, too, that rightclicking and selecting "Open With" did not work for any internal editor.
Closing Visual Studio and reopening it didn't work. What worked eventually was:
Rightclick the CSS file, select Open With and select CSS Source Editor With Encoding
Click Set as Default, then click OK. Nothing will happen.
Close all editors. Close Visual Studio
Reopen Visual Studio and your solution or project.
Double click the CSS file. It will ask for the encoding. Select Auto. It should now open correctly.
Rightclick again and set the default editor back to CSS Source Editor (otherwise you'll always have to select the encoding manually).
Or in short: associate with "With Encoding", restart VS, open CSS correctly with encoding "Auto", re-associate with default CSS Editor, done.

Resources