Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix headings #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#JSHint for Sublime Text
# JSHint for Sublime Text

The best JavaScript syntax checker: [JSHint](http://www.jshint.com/) for the best text editor: [Sublime Text](http://www.sublimetext.com/2)

Expand All @@ -12,28 +12,28 @@ The best JavaScript syntax checker: [JSHint](http://www.jshint.com/) for the bes

**Windows:** Installing node with the Windows Installer from nodejs.org is assumed.

##1. Terminal
## 1. Terminal

npm install -g jshint

**Note:** JSHint will use the first .jshintrc file found traversing from the active file in Sublime Text up to your project's root.

##2. Sublime Text Package Control
## 2. Sublime Text Package Control

- `command`-`shift`-`p` *or* `control`-`shift`-`p` in Linux/Windows
- type `install p`, select `Package Control: Install Package`
- type `jshint`, select `JSHint`

**Note:** Without Sublime Package Control, you could manually clone to Packages directory as 'JSHint', exactly.

##3. JSHint an active JavaScript file
## 3. JSHint an active JavaScript file

- `control`-`j` *or* `alt`-`j` in Linux/Windows *or* Tools/Contextual menus *or* the Command Palette
- `F4` jump to next error row/column
- `shift`-`F4` jump to previous error row-column

**Note:** The `control`-`j`/`alt`-`j` shortcut changes the Build System on the current file to JSHint, then Builds to run JSHint on the file and output any errors for jumping to within the file. You could alternatively set the Build System to Automatic and `command`-`b`/`control`-`b`/`F7`, but only on files that end with .js.

##JSHint on save
## JSHint on save

Install [SublimeOnSaveBuild](https://github.com/alexnj/SublimeOnSaveBuild)