Comments (2)
My guess:
ef
isextract-function
: Extracts the marked expressions out into a new named function.eo
isexpand-object
: Converts a one line object literal to multiline.co
iscontract-object
: Converts a multiline object literal to one line.eu
isexpand-function
: Converts a one line function to multiline (expecting semicolons as statement delimiters).cu
iscontract-function
: Converts a multiline function to one line (expecting semicolons as statement delimiters).ea
isexpand-array
: Converts a one line array to multiline.ca
iscontract-array
: Converts a multiline array to one line.wi
iswrap-buffer-in-iife
: Wraps the entire buffer in an immediately invoked function expressionig
isinject-global-in-iife
: Creates a shortcut for a marked global by injecting it in the wrapping immediately invoked function expressionag
isadd-to-globals-annotation
: Creates a/*global */
annotation if it is missing, and adds the var at point to it.ev
isextract-var
: Takes a marked expression and replaces it with a var.3i
isternary-to-if
: Converts ternary operator to if-statement.sv
issplit-var-declaration
: Splits avar
with multiple vars declared, into severalvar
statements.ss
issplit-string
: Splits astring
.lt
islog-this
: Adds a console.log() statement for what is at point (or region).dt
isdebug-this
: Adds a debug() statement for what is at point (or region).k
iskill
: Kills to the end of the line, but does not cross semantic boundaries.
from js2-refactor.el.
js2-mode comes with its own JavaScript parser, and js2-refactor relies heavily on the AST it builds.
from js2-refactor.el.
Related Issues (20)
- js2r-toggle-arrow-function-and-expression not working for brace-less arrow functions HOT 3
- Package not found when doing package-install HOT 2
- Work when hashbang is present HOT 1
- calling js2r-toggle-arrow-function-and-expression is not idempotent for expressions returning json HOT 2
- Any plan to support web-mode HOT 4
- `inline-var` produces incorrect output if no semicolons are used HOT 3
- Cannot slurp the last AST node of a buffer
- js2r-contract-node-at-point not behaving as expected HOT 1
- Does js2-refactor hard-require yasnippet ? HOT 2
- Idea for js2r-extract-class-to-file
- multiple word edit failed in emacs 26.1 on archlinux (C-c C-r i-v) HOT 3
- Extract function fails inside exported functions
- extract function with a selected region extracts the whole line HOT 1
- `js2r-rename-var`: don't move cursor to the start of the symbol
- Extract function ignores jsdoc HOT 1
- move region to new file
- Moving js2-refactor under `js-emacs` HOT 6
- Toggle 'use strict' in module/defun
- How to use with js2-minor-mode? HOT 1
- js2r-inline-var doesn't work if variable is initialized with a `new` expression
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js2-refactor.el.