Extract Script (ASP.NET)

Extracts javascript code to an external file.

Availability

Available from the context menu or via shortcuts:

  • when the cursor is anywhere within the opening or closing <script> tag.

Examples

<%--aspx page--%>
<script language=javascript>
    function CreateBorder(){
        myimg.style.borderStyle = "double";
    }
    function DeleteBorder() {
        myimg.style.borderStyle = "none";
    }
</script>

Result:

//javascript file
function CreateBorder()
{
        myimg.style.borderStyle = "double";
}
function DeleteBorder()
{
        myimg.style.borderStyle = "none";
}

Screenshot

rsExtractScript