adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.25k stars 7.63k forks source link

Removing inline function parenthesis, itself removing right side parenthesis also #13399

Open ekodikara opened 7 years ago

ekodikara commented 7 years ago

I am using brackets for editing java script. Lets say we have to log some function's value in console. We use something like this. console.log(myFunctionName()); .But when I remove function right and left parenthesis by pressing back button from the key board again itself it removed right parenthesis of the console.log function. console.log(myFunctionName;

Steps to Reproduce

  1. set cursor between myFunctionName() end of console log parenthesis like - > console.log(myFunctionName()|)
  2. Press back key two times to remove the parenthesis.

Expected behavior: Remote last three (3) parenthesis

Actual behavior: no need to remove console.log end parenthesis

Versions

OS Windows - 10 (64bit) Version of Brackets - Release 1.9 build 1.9.0-17312 (release 189f6d39a)

bracket

Badestrand commented 7 years ago

Expected behavior: Remote last three (3) parenthesis

Wouldn't the expected behaviour be that only two paranthesis behind myFunctionName get removed?

ekodikara commented 7 years ago

Yes. Just need to remove the myFunctionName parenthesis but it removes console.log right side parenthesis also.