You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we copied the spacing on the left (along with the text), we should be able to place our cursor to the very left and paste (or even just paste). Instead of the correct formatting we get something like this:
or this (without moving the text cursor)
I assume this is an issue with the newer format feature, but I could be wrong.
I'm not sure this should go there but one nice thing I noticed about Java IDE is the fact that when pasting text inside a string, the pasted string is escaped if necessary.
I have an issue with formatOnPaste:
copy the following code into <script></script> with "editor.formatOnPaste": true, it looks not good
(function() {
var updateButton = document.getElementById('updateDetails');
var cancelButton = document.getElementById('cancel');
var favDialog = document.getElementById('favDialog');
Activity
warpdesign commentedon Mar 4, 2017
I'm not sure this should go there but one nice thing I noticed about Java IDE is the fact that when pasting text inside a string, the pasted string is escaped if necessary.
So, pasting
I'm doing wellhere:would result in:
kzhui125 commentedon Mar 8, 2017
I have an issue with formatOnPaste:
copy the following code into <script></script> with "editor.formatOnPaste": true, it looks not good
(function() {
var updateButton = document.getElementById('updateDetails');
var cancelButton = document.getElementById('cancel');
var favDialog = document.getElementById('favDialog');
// Update button opens a modal dialog
updateButton.addEventListener('click', function() {
favDialog.showModal();
});
// Form cancel button closes the dialog box
cancelButton.addEventListener('click', function() {
favDialog.close();
});
})();
[-]Format onPaste issues with HTML[/-][+][html] Format onPaste issues with HTML[/+][html] Format onPaste issues with HTML. Fixes microsoft#21218